authorgravatar for hannaford.joshua55@gmail.comJosh Hannaford <hannaford.joshua55@gmail.com> 2022-01-22 17:28:29-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-26 00:49:17-05:00
log178cd60a5ef590c3b94d607690fa773cf13b93ce
tree20422f7e98803c0d1b9a1170e26c821042133c90
parent9ee67b967bd8ed2f11c24078ac16f9fd96b44a39

Update the documentation for std.mem.sliceTo for readability


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/mem.zig+1-1
......@@ -720,7 +720,7 @@ fn SliceTo(comptime T: type, comptime end: meta.Elem(T)) type {
720720 @compileError("invalid type given to std.mem.sliceTo: " ++ @typeName(T));
721721}
722722
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
724724/// iterates searching for the first occurrence of `end`, returning the scanned slice.
725725/// If `end` is not found, the full length of the array/slice/sentinel terminated pointer is returned.
726726/// If the pointer type is sentinel terminated and `end` matches that terminator, the