From 0cedd893fc60ec9768df91eab823c54719c47f1b Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Tue, 8 Apr 2025 17:28:15 -0700 Subject: [PATCH] fix: Adjust wording for 1.21 instead of output --- src/Chapter01.Tests/Listing01.21.Tests.cs | 2 +- src/Chapter01/Listing01.21.CommentingYourCode.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Chapter01.Tests/Listing01.21.Tests.cs b/src/Chapter01.Tests/Listing01.21.Tests.cs index a6227396c..275e3f8d0 100644 --- a/src/Chapter01.Tests/Listing01.21.Tests.cs +++ b/src/Chapter01.Tests/Listing01.21.Tests.cs @@ -11,7 +11,7 @@ public void Main_InputInigoMontoya_WriteLastFirst() @"Hey you! Enter your first name: <>Enter your last name: <>Your full name is Montoya, Inigo."; +>>Your full name is Inigo Montoya."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( expected, CommentSamples.Main); diff --git a/src/Chapter01/Listing01.21.CommentingYourCode.cs b/src/Chapter01/Listing01.21.CommentingYourCode.cs index 510748e5c..58edc08d9 100644 --- a/src/Chapter01/Listing01.21.CommentingYourCode.cs +++ b/src/Chapter01/Listing01.21.CommentingYourCode.cs @@ -19,7 +19,7 @@ public static void Main() /* Display a greeting to the console using composite formatting. */ - Console.WriteLine("Your full name is {1}, {0}.", + Console.WriteLine("Your full name is {0} {1}.", firstName, lastName); // This is the end // of the program listing