authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2021-08-11 18:16:36-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-11 21:19:03-04:00
log493822ac3bab344821aad180aae27b629eb920c1
tree4ec8445ae45762ac130441bd458237aef5946b5a
parent0686954802d17e87114542878615fd0a9a245e49

Update mem.split/mem.tokenize doc comments

Follow up to #9531

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

lib/std/mem.zig+2-2
......@@ -1569,7 +1569,7 @@ test "bswapAllFields" {
15691569
15701570/// Returns an iterator that iterates over the slices of `buffer` that are not
15711571/// any of the bytes in `delimiter_bytes`.
1572/// tokenize(" abc def ghi ", " ")
1572/// tokenize(u8, " abc def ghi ", " ")
15731573/// Will return slices for "abc", "def", "ghi", null, in that order.
15741574/// If `buffer` is empty, the iterator will return null.
15751575/// If `delimiter_bytes` does not exist in buffer,
......@@ -1663,7 +1663,7 @@ test "mem.tokenize (reset)" {
16631663
16641664/// Returns an iterator that iterates over the slices of `buffer` that
16651665/// are separated by bytes in `delimiter`.
1666/// split("abc|def||ghi", "|")
1666/// split(u8, "abc|def||ghi", "|")
16671667/// will return slices for "abc", "def", "", "ghi", null, in that order.
16681668/// If `delimiter` does not exist in buffer,
16691669/// the iterator will return `buffer`, null, in that order.