Update errata.md

This commit is contained in:
Mark J Price 2024-01-19 12:29:00 +00:00
parent 4c8e118dd1
commit 4b1ff6b592

View file

@ -677,7 +677,7 @@ await Task.WhenAll(tasks);
Console.WriteLine($"{tasks.Count()} stars!");
```
But the `WriteLine` methods should have been `Write` methods, as shown in the following code:
But I mistakenly used `WriteLine` methods when they should have been `Write` methods, as shown in the following code:
```cs
IEnumerable<Task> tasks = Enumerable.Range(0, 2)
.Select(_ => Task.Run(() => Console.Write("*")));