Commit 8dccd77277

frmdstryr <frmdstryr@protonmail.com>
2023-10-27 16:09:12
Update comment on while
The @"while" is still used if cont expr is missing.
1 parent 3b0dce8
Changed files (1)
lib
std
lib/std/zig/Ast.zig
@@ -3220,6 +3220,7 @@ pub const Node = struct {
         /// `while (lhs) : (a) b else c`. `While[rhs]`.
         /// `while (lhs) |x| : (a) b else c`. `While[rhs]`.
         /// `while (lhs) |x| : (a) b else |y| c`. `While[rhs]`.
+        /// The cont expression part `: (a)` may be omitted.
         @"while",
         /// `for (lhs) rhs`.
         for_simple,