Skip to content

Commit a3faa3d

Browse files
fix: Update 1.21 to match output (#819)
Fixes #789
1 parent 6dc377a commit a3faa3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Chapter01.Tests/Listing01.21.Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void Main_InputInigoMontoya_WriteLastFirst()
1111
@"Hey you!
1212
Enter your first name: <<Inigo
1313
>>Enter your last name: <<Montoya
14-
>>Your full name is Montoya, Inigo.";
14+
>>Your full name is Inigo Montoya.";
1515

1616
IntelliTect.TestTools.Console.ConsoleAssert.Expect(
1717
expected, CommentSamples.Main);

src/Chapter01/Listing01.21.CommentingYourCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void Main()
1919
/* Display a greeting to the console
2020
using composite formatting. */
2121

22-
Console.WriteLine("Your full name is {1}, {0}.",
22+
Console.WriteLine("Your full name is {0} {1}.",
2323
firstName, lastName);
2424
// This is the end
2525
// of the program listing

0 commit comments

Comments
 (0)