mirror of
https://github.com/ziglang/zig.git
synced 2025-02-02 20:21:35 +00:00
Update the documentation for std.mem.sliceTo for readability
This commit is contained in:
parent
9ee67b967b
commit
178cd60a5e
@ -720,7 +720,7 @@ fn SliceTo(comptime T: type, comptime end: meta.Elem(T)) type {
|
||||
@compileError("invalid type given to std.mem.sliceTo: " ++ @typeName(T));
|
||||
}
|
||||
|
||||
/// Takes a pointer to an array, an array, a sentinel-terminated pointer, or a slice and
|
||||
/// Takes an array, a pointer to an array, a sentinel-terminated pointer, or a slice and
|
||||
/// iterates searching for the first occurrence of `end`, returning the scanned slice.
|
||||
/// If `end` is not found, the full length of the array/slice/sentinel terminated pointer is returned.
|
||||
/// If the pointer type is sentinel terminated and `end` matches that terminator, the
|
||||
|
Loading…
Reference in New Issue
Block a user