Commit 5c5d1f93c4

frmdstryr <frmdstryr@protonmail.com>
2023-10-25 17:26:30
Update comment on for_range in Ast
The rhs can be omitted eg `0..`
1 parent f30ab46
Changed files (1)
lib
std
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`.