From 5c5d1f93c4aa469cfba3f7838ae4a7db18e7152b Mon Sep 17 00:00:00 2001 From: frmdstryr Date: Wed, 25 Oct 2023 11:26:30 -0400 Subject: [PATCH] Update comment on for_range in Ast The rhs can be omitted eg `0..` --- lib/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 index e93a16edc6..56d45b53c4 100644 --- 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`.