authorgravatar for frmdstryr@protonmail.comfrmdstryr <frmdstryr@protonmail.com> 2023-10-27 10:09:12-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-10-27 18:45:24+03:00
log8dccd77277d95d9a941f1e1766731cdb523526cb
tree3c7cb5f121eac27ad1d2c31da6fade431ac411b3
parent3b0dce8ebd252161bfca237953c00b2a40705b90

Update comment on while

The @"while" is still used if cont expr is missing.

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/zig/Ast.zig+1
......@@ -3220,6 +3220,7 @@ pub const Node = struct {
32203220 /// `while (lhs) : (a) b else c`. `While[rhs]`.
32213221 /// `while (lhs) |x| : (a) b else c`. `While[rhs]`.
32223222 /// `while (lhs) |x| : (a) b else |y| c`. `While[rhs]`.
3223 /// The cont expression part `: (a)` may be omitted.
32233224 @"while",
32243225 /// `for (lhs) rhs`.
32253226 for_simple,