motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 8dccd77277d95d9a941f1e1766731cdb523526cb (tree)
parent 3b0dce8ebd252161bfca237953c00b2a40705b90
Author: frmdstryr <frmdstryr@protonmail.com>
Date:   Fri, 27 Oct 2023 10:09:12 -0400

Update comment on while

The @"while" is still used if cont expr is missing.
Diffstat:
Mlib/std/zig/Ast.zig | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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,