commit a4cffd80bdc9bf879d1048b52aeba5716723803d (tree)
parent 8dccd77277d95d9a941f1e1766731cdb523526cb
Author: frmdstryr <frmdstryr@protonmail.com>
Date: Fri, 27 Oct 2023 09:57:08 -0400
Update slice_sentinel comment
Slice end can be omitted
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/zig/Ast.zig b/lib/std/zig/Ast.zig
@@ -3120,7 +3120,7 @@ pub const Node = struct {
/// `lhs[b..c]`. rhs is index into Slice
/// main_token is the lbracket.
slice,
- /// `lhs[b..c :d]`. rhs is index into SliceSentinel
+ /// `lhs[b..c :d]`. rhs is index into SliceSentinel. Slice end "c" can be omitted.
/// main_token is the lbracket.
slice_sentinel,
/// `lhs.*`. rhs is unused.