markjprice / cs12dotnet8

Repository for the Packt Publishing book titled "C# 12 and .NET 8 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
564 stars 164 forks source link

Problem in source code, but book listing is correct #21

Closed calupca closed 6 months ago

calupca commented 6 months ago

In

code/Chapter02/Formatting/Program.cs

Line 24,

  "{0} {1} lived in {2} and worked in the {4} team at {5}."

the argument indices go beyond the number of arguments passed. Apparently the example used to have "Sweden" as an argument, but was removed. The code listing in the book is correct, but the file in the repo is incorrect.

markjprice commented 6 months ago

Thanks, I've fixed this now.