From 178cd60a5ef590c3b94d607690fa773cf13b93ce Mon Sep 17 00:00:00 2001 From: Josh Hannaford Date: Sat, 22 Jan 2022 17:28:29 -0500 Subject: [PATCH] Update the documentation for std.mem.sliceTo for readability --- lib/std/mem.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/mem.zig b/lib/std/mem.zig index 348f602621f3fa5885498c1b82ffec302d6b13fd..5c0e3b30b76e329c53a6ae11512b347b5291eec8 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -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 -- 2.54.0