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

Remove unreachable code from enums example #540

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

BigJayToDaIzo
Copy link
Contributor

@BigJayToDaIzo BigJayToDaIzo commented Jul 3, 2024

After confirming I did not misunderstand how switch default and panic works, I realized there was some unreachable code in the example that may confuse new learners. Go LSP confirms.

image

Copy link
Collaborator

@eliben eliben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this makes sense!

@BigJayToDaIzo
Copy link
Contributor Author

Thanks, this makes sense!

My pleasure! Thank YOU for the lovely refresher course after not having looked at any Go for a month! 😁

@eliben eliben reopened this Jul 3, 2024
@BigJayToDaIzo
Copy link
Contributor Author

woops, fat fingered the mouse on that early close before merge. Apologies!

@eliben eliben merged commit aa04b84 into mmcgrana:master Jul 3, 2024
4 checks passed
@eliben
Copy link
Collaborator

eliben commented Jul 3, 2024

woops, fat fingered the mouse on that early close before merge. Apologies!

No worries, it's merged now.

Note that it may take a few days to show up on the published website, since the upload is done manually.

@BigJayToDaIzo BigJayToDaIzo deleted the unreachable-code branch July 3, 2024 16:58
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

Successfully merging this pull request may close these issues.

2 participants