Skip to content

Commit 852a2f9

Browse files
authored
Fix typo in csharp's xat.cs
1 parent 22f66ba commit 852a2f9

File tree

1 file changed

+10
-10
lines changed
  • snippets/csharp/System.Security/SecureString/AppendChar

1 file changed

+10
-10
lines changed

snippets/csharp/System.Security/SecureString/AppendChar/xat.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Example
66
{
77
public static void Main()
88
{
9-
string msg = "The curent length of the SecureString object: {0}\n";
9+
string msg = "The current length of the SecureString object: {0}\n";
1010
Console.WriteLine("1) Instantiate the SecureString object.");
1111
SecureString ss = new SecureString();
1212
Console.WriteLine(msg, ss.Length);
@@ -44,26 +44,26 @@ public static void Main()
4444
}
4545
// The example displays the following output:
4646
// 1) Instantiate the SecureString object.
47-
// The curent length of the SecureString object: 0
47+
// The current length of the SecureString object: 0
4848
//
4949
// 2) Append 'a' to the value.
50-
// The curent length of the SecureString object: 1
50+
// The current length of the SecureString object: 1
5151
//
5252
// 3) Append 'X' to the value.
53-
// The curent length of the SecureString object: 2
53+
// The current length of the SecureString object: 2
5454
//
5555
// 4) Append 'c' to the value.
56-
// The curent length of the SecureString object: 3
56+
// The current length of the SecureString object: 3
5757
//
5858
// 5) Insert 'd' at the end of the value.
59-
// The curent length of the SecureString object: 4
59+
// The current length of the SecureString object: 4
6060
//
6161
// 6) Remove the last character ('d') from the value.
62-
// The curent length of the SecureString object: 3
62+
// The current length of the SecureString object: 3
6363
//
6464
// 7) Set the second character of the value to 'b'.
65-
// The curent length of the SecureString object: 3
65+
// The current length of the SecureString object: 3
6666
//
6767
// 8) Delete the value of the SecureString object:
68-
// The curent length of the SecureString object: 0
69-
//</snippet1>
68+
// The current length of the SecureString object: 0
69+
//</snippet1>

0 commit comments

Comments
 (0)