Update comment on for_range in Ast

The rhs can be omitted eg `0..`
This commit is contained in:
frmdstryr 2023-10-25 11:26:30 -04:00 committed by Andrew Kelley
parent f30ab46306
commit 5c5d1f93c4

View File

@ -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`.