You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a Movie without a value for the string property, you say that it will have a zero value of nil. This is not the case - the property is a string and will have a zero value of "" (empty string). A struct with no value itself will be nil, not the property.
I cannot find an errata page for the book (I have a physical copy) - but if you could change it for the digital version...
The text was updated successfully, but these errors were encountered:
When you create a Movie without a value for the string property, you say that it will have a zero value of nil. This is not the case - the property is a string and will have a zero value of "" (empty string). A struct with no value itself will be nil, not the property.
I cannot find an errata page for the book (I have a physical copy) - but if you could change it for the digital version...
The text was updated successfully, but these errors were encountered: