Skip to content

Commit 2b735b6

Browse files
committed
GetCurrentDirectory example fix (#10710)
1 parent 9ba1f1b commit 2b735b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/csharp/System.IO/Directory/GetCurrentDirectory/dir_getcurdir.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void Main()
1919

2020
// Change the current directory.
2121
Environment.CurrentDirectory = (target);
22-
if (path.Equals(Directory.GetCurrentDirectory()))
22+
if (target.Equals(Directory.GetCurrentDirectory()))
2323
{
2424
Console.WriteLine("You are in the temp directory.");
2525
}
@@ -34,4 +34,4 @@ public static void Main()
3434
}
3535
}
3636
}
37-
// </Snippet1>
37+
// </Snippet1>

0 commit comments

Comments
 (0)