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

Mismatch between explanation and example code #565

Closed
wondersavant opened this issue Dec 24, 2024 · 3 comments
Closed

Mismatch between explanation and example code #565

wondersavant opened this issue Dec 24, 2024 · 3 comments

Comments

@wondersavant
Copy link

https://gobyexample.com/enums

Screenshot 2024-12-24 142514

adjust the text to match the code.

@eliben
Copy link
Collaborator

eliben commented Dec 27, 2024

Can you please clarify where you see the mismatch?

@wondersavant
Copy link
Author

"It's not a big deal, but I just wanted to let you know.

398402322-077fc720-5766-4888-8ce4-7289c52cc3d7

@eliben
Copy link
Collaborator

eliben commented Dec 30, 2024

Sorry, I still don't see a mismatch. The stateName map is required to implement the String() method, so it appears first. The mention of the stringer tool is not reflected in the actual code right now

@eliben eliben closed this as completed Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants