Skip to content

Commit

Permalink
[zig/en] Remove incorrect comment in enum section (#5061)
Browse files Browse the repository at this point in the history
* [zig/en] Remove incorrect comment in enum section

Remove a comment in the enum section since it incorrectly says a code
snippet won't compile

* [zig/en] Add comment to enum section
  • Loading branch information
chupsondev authored Aug 29, 2024
1 parent 65d8f42 commit 27c5e6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zig.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,7 @@ const x = switch (direction) {
.South => true,
};
// Switch statements need exhaustiveness.
// Won't compile: East and West are missing.
// This compiles without errors, since it exhaustively lists all possible values
const x = switch (direction) {
.North => true,
.South => true,
Expand Down

0 comments on commit 27c5e6b

Please sign in to comment.