authorgravatar for frmdstryr@protonmail.comfrmdstryr <frmdstryr@protonmail.com> 2023-10-25 11:26:30-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-25 14:09:34-04:00
log5c5d1f93c4aa469cfba3f7838ae4a7db18e7152b
tree3550ab8a261eab59367e98f2bc6e8aa33f99f3fd
parentf30ab46306d7d137ed70bbcb3466c27846833ed3

Update comment on for_range in Ast

The rhs can be omitted eg `0..`

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

lib/std/zig/Ast.zig+1-1
......@@ -3225,7 +3225,7 @@ pub const Node = struct {
32253225 for_simple,
32263226 /// `for (lhs[0..inputs]) lhs[inputs + 1] else lhs[inputs + 2]`. `For[rhs]`.
32273227 @"for",
3228 /// `lhs..rhs`.
3228 /// `lhs..rhs`. rhs can be omitted.
32293229 for_range,
32303230 /// `if (lhs) rhs`.
32313231 /// `if (lhs) |a| rhs`.