diff --git a/Errata.md b/Errata.md index 5587e30aa..b0c29d3f5 100644 --- a/Errata.md +++ b/Errata.md @@ -17,4 +17,5 @@ Zhou Jing | 3 | 110 | Replace `System.Value` with `System.ValueTuple` i Zhou Jing | 3 | 102 | Change Listing 2.18 to " the Working with Strings listing in Chapter 2 (Listing 2.24)" in "This listing differs from Listing 2.18 in two ways" Zhou Jing | 3 | 102 | Changed 'restrictive' to 'less restrictive' in "In each of these cases, the variable declaration is restrictive because the variable may be assigned." Zhou Jing | 23 | 1077 | Change "Point Declaration" to "Pointer Declaration" in mindmap -Zhou Jing | 22 | 1074 | Change "Chapter 19" to "Chapter 20" in "we pointed out in Chapter 19" \ No newline at end of file +Zhou Jing | 22 | 1074 | Change "Chapter 19" to "Chapter 20" in "we pointed out in Chapter 19" +Zhou Jing | 22 | 1065 - 1066 | Changed 'Thread' to 'Task' and "Application exiting" to "Application shutting down" \ No newline at end of file diff --git a/src/Chapter22.Tests/Listing22.10.Tests.cs b/src/Chapter22.Tests/Listing22.10.Tests.cs index ba1f4de41..4f1098374 100644 --- a/src/Chapter22.Tests/Listing22.10.Tests.cs +++ b/src/Chapter22.Tests/Listing22.10.Tests.cs @@ -10,9 +10,9 @@ public void MainTest() const string expected = @"Application started.... Starting task.... DoWork() started.... - Waiting while thread executes... +Waiting while task executes... DoWork() ending.... -Thread completed +Task completed Application shutting down...."; IntelliTect.TestTools.Console.ConsoleAssert.Expect( diff --git a/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs b/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs index fcbd1269f..77968425c 100644 --- a/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs +++ b/src/Chapter22/Listing22.10.WaitingForManualResetEventSlim.cs @@ -42,10 +42,10 @@ public static void Main() // Block until DoWork() has started _DoWorkSignaledResetEvent.Wait(); Console.WriteLine( - " Waiting while thread executes..."); + "Waiting while task executes..."); _MainSignaledResetEvent.Set(); task.Wait(); - Console.WriteLine("Thread completed"); + Console.WriteLine("Task completed"); Console.WriteLine( "Application shutting down...."); }