Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix: Add else branch to make the switch exhaustive #95

Merged
merged 2 commits into from
Nov 24, 2024

Conversation

KorryKatti
Copy link
Contributor

The switch construct in Zig requires all possible cases to be covered for exhaustive checking. The original code lacks an else branch, causing a compile-time error for unhandled values. This PR adds an else branch to handle all unhandled cases and prevent errors.

@pedropark99
Copy link
Owner

Thank you @KorryKatti !

@pedropark99 pedropark99 merged commit e9afae4 into pedropark99:main Nov 24, 2024
pedropark99 added a commit that referenced this pull request Nov 24, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants