From 8dccd77277d95d9a941f1e1766731cdb523526cb Mon Sep 17 00:00:00 2001 From: frmdstryr Date: Fri, 27 Oct 2023 10:09:12 -0400 Subject: [PATCH] Update comment on while The @"while" is still used if cont expr is missing. --- lib/std/zig/Ast.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/std/zig/Ast.zig b/lib/std/zig/Ast.zig index 56d45b53c4..61a10189b8 100644 --- a/lib/std/zig/Ast.zig +++ b/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,