Commit a4cffd80bd

frmdstryr <frmdstryr@protonmail.com>
2023-10-27 15:57:08
Update slice_sentinel comment
Slice end can be omitted
1 parent 8dccd77
Changed files (1)
lib
std
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.