Skip to content

Commit a14c4bc

Browse files
authored
Batch 29 fixes (dotnet#5421)
* Fix sample output * one more fix * fix one more output
1 parent c5fd03a commit a14c4bc

File tree

19 files changed

+40
-40
lines changed

19 files changed

+40
-40
lines changed

samples/snippets/cpp/VS_Snippets_CLR/InnerEx/CPP/innerex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ int main()
4848
// In catch block of Main method.
4949
// Caught: Error in CatchInner caused by calling the ThrowInner method.
5050
// Inner exception: AppException: Exception in ThrowInner method.
51+
// at Example.ThrowInner()
5152
// at Example.CatchInner()
5253
//</Snippet1>

samples/snippets/csharp/VS_Snippets_CLR/InnerEx/CS/innerex.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ public void CatchInner()
4545
// In catch block of Main method.
4646
// Caught: Error in CatchInner caused by calling the ThrowInner method.
4747
// Inner exception: AppException: Exception in ThrowInner method.
48+
// at Example.ThrowInner()
4849
// at Example.CatchInner()
4950
// </Snippet1>

samples/snippets/csharp/VS_Snippets_CLR/Regex_Words/CS/words.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ public static void Main ()
4747
// The the quick brown fox fox jumps over the lazy dog dog.
4848
// 'The' repeated at positions 0 and 4
4949
// 'fox' repeated at positions 20 and 25
50-
// 'dog' repeated at positions 50 and 54
50+
// 'dog' repeated at positions 49 and 53
5151
// </snippet0>

samples/snippets/csharp/VS_Snippets_CLR/string.toupper1/CS/toupper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public static void ShowCodePoints(string varName, string s)
3434
// This example displays the following output:
3535
// str1 = indigo: 0069 006e 0064 0069 0067 006f
3636
// str2 = INDIGO: 0049 004e 0044 0049 0047 004f
37-
// str3 = INDIGO: 0130 004e 0044 0130 0047 004f
37+
// str3 = İNDİGO: 0130 004e 0044 0130 0047 004f
3838
// str2 is not equal to str3.
3939
// </Snippet1>

samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static void ElementAtEx1()
694694
Console.WriteLine("The name chosen at random is '{0}'.", name);
695695

696696
/*
697-
This code produces the following sample output:
697+
This code produces output similar to the following:
698698
699699
The name chosen at random is 'Ito, Shu'.
700700
*/

samples/snippets/csharp/VS_Snippets_CLR_System/system.Text.RegularExpressions.GroupCollection/cs/Example1.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public static void Main()
2525
}
2626
}
2727
// The example displays the following output:
28-
// r: Microsoft
29-
// r: Excel
30-
// r: Access
31-
// r: Outlook
32-
// r: PowerPoint
33-
// T: Silverlight
28+
// ®: Microsoft
29+
// ®: Excel
30+
// ®: Access
31+
// ®: Outlook
32+
// ®: PowerPoint
33+
// : Silverlight
3434
// </Snippet1>

samples/snippets/csharp/VS_Snippets_CLR_System/system.Text.RegularExpressions.Match.Class/cs/Match2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public static void Main()
2323
}
2424
}
2525
// The example displays the following output:
26-
// 'Console.Write' found in the source code at position 115.
26+
// 'Console.Write' found in the source code at position 112.
2727
// 'Console.Write' found in the source code at position 184.
28-
// 'Console.WriteLine' found in the source code at position 211.
28+
// 'Console.WriteLine' found in the source code at position 207.
2929
// </Snippet2>
3030

3131
internal class Test

samples/snippets/csharp/VS_Snippets_CLR_System/system.Text.RegularExpressions.Match.Class/cs/Match3.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public static void Main()
2525
}
2626
}
2727
// The example displays the following output:
28-
// 'Console.Write' found in the source code at position 115.
28+
// 'Console.Write' found in the source code at position 112.
2929
// 'Console.Write' found in the source code at position 184.
30-
// 'Console.WriteLine' found in the source code at position 211.
30+
// 'Console.WriteLine' found in the source code at position 207.
3131
// </Snippet3>
3232

3333
internal class Test

samples/snippets/csharp/VS_Snippets_CLR_System/system.char.toupper/cs/toupper1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public static void Main()
1616
// E --> E (Same Character)
1717
// 6 --> 6 (Same Character)
1818
// , --> , (Same Character)
19-
// ? --> ?
19+
// ж --> Ж
2020
// ä --> Ä
2121
// </Snippet1>

samples/snippets/csharp/VS_Snippets_CLR_System/system.globalization.datetimeformatinfo.class/cs/example2.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ public static void Main()
2929
}
3030
}
3131
// The example displays the following output:
32-
// D: Tuesday, July 09, 2013
33-
// F: Tuesday, July 09, 2013 12:00:00 AM
34-
// f: Tuesday, July 09, 2013 12:00 AM
32+
// D: Tuesday, July 9, 2013
33+
// F: Tuesday, July 9, 2013 12:00:00 AM
34+
// f: Tuesday, July 9, 2013 12:00 AM
3535
//
3636
// D: Tu 09-Jul-2013
37-
// F: Tuesday, July 09, 2013 12:00:00 AM
37+
// F: Tuesday, July 9, 2013 12:00:00 AM
3838
// f: Tu 09-Jul-2013 12:00 AM
3939
// </Snippet13>

0 commit comments

Comments
 (0)