zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5c5d1f93c4aa469cfba3f7838ae4a7db18e7152b (tree)
parent f30ab46306d7d137ed70bbcb3466c27846833ed3
Author: frmdstryr <frmdstryr@protonmail.com>
Date:   Wed, 25 Oct 2023 11:26:30 -0400

Update comment on for_range in Ast

The rhs can be omitted eg `0..`
Diffstat:
Mlib/std/zig/Ast.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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