| ... | @@ -720,7 +720,7 @@ fn SliceTo(comptime T: type, comptime end: meta.Elem(T)) type { | ... | @@ -720,7 +720,7 @@ fn SliceTo(comptime T: type, comptime end: meta.Elem(T)) type { |
| 720 | @compileError("invalid type given to std.mem.sliceTo: " ++ @typeName(T)); | 720 | @compileError("invalid type given to std.mem.sliceTo: " ++ @typeName(T)); |
| 721 | } | 721 | } |
| 722 | | 722 | |
| 723 | /// Takes a pointer to an array, an array, a sentinel-terminated pointer, or a slice and | 723 | /// Takes an array, a pointer to an array, a sentinel-terminated pointer, or a slice and |
| 724 | /// iterates searching for the first occurrence of `end`, returning the scanned slice. | 724 | /// iterates searching for the first occurrence of `end`, returning the scanned slice. |
| 725 | /// If `end` is not found, the full length of the array/slice/sentinel terminated pointer is returned. | 725 | /// If `end` is not found, the full length of the array/slice/sentinel terminated pointer is returned. |
| 726 | /// If the pointer type is sentinel terminated and `end` matches that terminator, the | 726 | /// If the pointer type is sentinel terminated and `end` matches that terminator, the |