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
syedfa
December 31, 2020, 7:11am
2
@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
hvonweg
December 31, 2020, 12:39pm
3
Thanks for the info. I will do it that way in the future.
system
Closed
March 19, 2021, 5:48am
4
This topic was automatically closed after 166 days. New replies are no longer allowed.