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-02-02 21:48:48-07:00
log340bb8198f58a6bdae3352314f4ff9bdb03d7c38
treea42b57324d1c9344efd16f2ae9a854d8f27a4b46
parente37c55bae0f154ca2e5ce375fe695f707853fce3

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