Skip to content

Commit 7ec041f

Browse files
authored
Fix typo "curent" (#10417)
* Fixed typo in xat.vb * Fix typo in csharp's xat.cs * Create Project.csproj for SecureString/AppendChar * Update xat.cs * Create Project.vbproj for visualbasic/VS_Snippets_CLR/SecureString
1 parent f69b3f0 commit 7ec041f

File tree

4 files changed

+37
-21
lines changed

4 files changed

+37
-21
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Library</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
using System;
33
using System.Security;
44

5-
class Example
5+
class SecureStringExample
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>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
</Project>

snippets/visualbasic/VS_Snippets_CLR/SecureString.xAt/VB/xat.vb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Imports System.Security
33

44
Module Example
55
Public Sub Main()
6-
Dim msg As String = "The curent length of the SecureString object: {0}" + vbCrLf
6+
Dim msg As String = "The current length of the SecureString object: {0}" + vbCrLf
77
Console.WriteLine("1) Instantiate the SecureString object.")
88
Dim ss As New SecureString()
99
Console.WriteLine(msg, ss.Length)
@@ -41,26 +41,26 @@ Module Example
4141
End Module
4242
' The example displays the following output:
4343
' 1) Instantiate the SecureString object.
44-
' The curent length of the SecureString object: 0
44+
' The current length of the SecureString object: 0
4545
'
4646
' 2) Append 'a' to the value.
47-
' The curent length of the SecureString object: 1
47+
' The current length of the SecureString object: 1
4848
'
4949
' 3) Append 'X' to the value.
50-
' The curent length of the SecureString object: 2
50+
' The current length of the SecureString object: 2
5151
'
5252
' 4) Append 'c' to the value.
53-
' The curent length of the SecureString object: 3
53+
' The current length of the SecureString object: 3
5454
'
5555
' 5) Insert 'd' at the end of the value.
56-
' The curent length of the SecureString object: 4
56+
' The current length of the SecureString object: 4
5757
'
5858
' 6) Remove the last character ('d') from the value.
59-
' The curent length of the SecureString object: 3
59+
' The current length of the SecureString object: 3
6060
'
6161
' 7) Set the second character of the value to 'b'.
62-
' The curent length of the SecureString object: 3
62+
' The current length of the SecureString object: 3
6363
'
6464
' 8) Delete the value of the SecureString object:
65-
' The curent length of the SecureString object: 0
66-
'</snippet1>
65+
' The current length of the SecureString object: 0
66+
'</snippet1>

0 commit comments

Comments
 (0)