Skip to content

Commit d97e7a1

Browse files
authored
Fix typos in System.Text/Encoding/GetPreamble method code snippets (dotnet#7886)
* Fix typo: containa BOM -> contain a BOM in C# code snippet * Fix typo: containa BOM -> contain a BOM in C++ code snippet
1 parent 629911e commit d97e7a1

File tree

2 files changed

+2
-2
lines changed
  • snippets
    • cpp/VS_Snippets_CLR_System/system.Text.Encoding.GetPreamble Example/CPP
    • csharp/System.Text/Encoding/GetPreamble

2 files changed

+2
-2
lines changed

snippets/cpp/VS_Snippets_CLR_System/system.Text.Encoding.GetPreamble Example/CPP/preamble.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main()
1111
array<Byte>^preamble = unicode->GetPreamble();
1212

1313
// Make sure a preamble was returned
14-
// and is large enough to containa BOM.
14+
// and is large enough to contain a BOM.
1515
if ( preamble->Length >= 2 )
1616
{
1717

snippets/csharp/System.Text/Encoding/GetPreamble/preamble.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static void Main()
1515
byte[] preamble = unicode.GetPreamble();
1616

1717
// Make sure a preamble was returned
18-
// and is large enough to containa BOM.
18+
// and is large enough to contain a BOM.
1919
if(preamble.Length >= 2)
2020
{
2121
if(preamble[0] == 0xFE && preamble[1] == 0xFF)

0 commit comments

Comments
 (0)