CHAPTER 4
In the "Stored and Computed" part, the setter function contains : Int(newValue * 0.00076)
. It likely should be rather : Int(newValue / 0.00076)
In the "Lazy Properties" part, (it's a detail) print(bulby.pokedexEntry)
in the first code block should actually print "Bulbasaur, the Seed Pokemon." (the begining is missing in the comment).
In the same code block, is it normal that the braces of lazy var pokedexEntry = {...}()
end with parentheses ? (This might not be an error, but I'm not sure why they're there.)
In the "Property Observers" part, there is a small typo in the comment (after the 1st code block) :
Note that property observers are not called during initialization, as otherwise an observer may unsafely try to access the property it observers before it is initialized.
It should be "observes".
In the "Type Properties" part, there is a typo in "There will be only one copy of that properties". It should be "property".
In the same part, the question after the 1st code block should be "Why is Pokemon.strongest
, ..."
In the "Methods" part, the comment after the 1st code block has a typo : " Hence, we could have written only firends.contains(...)
..." it should be "friends.contains(...)
".
In the same part, after the 6th code block, "Enumerations ..." (the s is missing).
CHAPTER 5
In the "Value Type Initializers" part, in the comment after the 3rd code block, there is a typo in "... Swift doesn’t provide you with neither default not memberwise initializer anymore.". I tshould be "neither ... nor ..."
In the "Class Initializers" part, after the 1st code block, "As structs ..." here would mean something like "En tant que structs ...". I think you mean "Like structs ..." or "In the same way as structs do ...". This is followed by a typo : "... they can defined ..." should be "... they can define ...".
In the same part, after the 4th code block, this sentence is a bit confusing : "They just prepare some stuff buffer the actual (or rather designated) initializer is called:", I think you mean "They just prepare some stuff for a buffer, the actual (or rather designated) initializer is called:" or "as a buffer" maybe ?
THE END (for chapters 4 and 5 anyway)
Sorry for the long read...