Chapter 25: wrong Struct Name reference (RugyRecord)

On page 467, where is a small error:

struct RugbyRecord: TeamRecord, Tieable {
  var wins: Int
  var losses: Int
  var ties: Int
}
let rugbyRecord = RugyRecord(wins: 8, losses: 7, ties: 1) rugbyRecord.winningPercentage // 0.5

Error: Cannot find ‘RugyRecord’ in scope

Should be “RugbyRecord”.

Greetings,
Heiko

@hvonweg Thanks very much for your post, and our apologies. We will hopefully make that correction in a future edition!

In the future, any mistakes or errors you find, please post them in the “Errata” category for this book :slight_smile:

Thanks for the info. I will do it that way in the future.

This topic was automatically closed after 166 days. New replies are no longer allowed.