rbwhitaker / CSharpPlayersGuideEarlyAccess

A place to track issues with the C# Player's Guide for patches and future editions
18 stars 0 forks source link

5th edition: small error on page 147 #709

Open carb0nxl opened 1 year ago

carb0nxl commented 1 year ago

I discovered a small error when reading the print copy of the 5th edition:

In the first sentence of page 147 (Level 18: Instances of Classes), it says "The code above defines the Score class."

However, the code it refers to is actually below that paragraph, not above. pg147

rbwhitaker commented 1 year ago

Hm... I think "above" refers to the sample nearly a page earlier (it's identical to the Score class immediately before, but does not include the Score best = new Score(); before it). At this point, I'll never know what I had intended, but I wonder if I was referring back that far, especially when the code is repeated right away.

I definitely think there's room for some cleanup here. Thanks for pointing it out!