From 27c5e6bae0007d4c8a36db0947194a96698a5943 Mon Sep 17 00:00:00 2001 From: chupson Date: Thu, 29 Aug 2024 13:17:40 +0200 Subject: [PATCH] [zig/en] Remove incorrect comment in enum section (#5061) * [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 --- zig.html.markdown | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zig.html.markdown b/zig.html.markdown index 4046ae4313..68bff9acdf 100644 --- a/zig.html.markdown +++ b/zig.html.markdown @@ -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,