Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 1, struct, nil value #14

Open
hellojakecross opened this issue Jan 5, 2020 · 0 comments
Open

Chapter 1, struct, nil value #14

hellojakecross opened this issue Jan 5, 2020 · 0 comments

Comments

@hellojakecross
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant