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" {...@@ -1569,7 +1569,7 @@ test "bswapAllFields" {
15691569
1570/// Returns an iterator that iterates over the slices of `buffer` that are not1570/// Returns an iterator that iterates over the slices of `buffer` that are not
1571/// any of the bytes in `delimiter_bytes`.1571/// any of the bytes in `delimiter_bytes`.
1572/// tokenize(" abc def ghi ", " ")1572/// tokenize(u8, " abc def ghi ", " ")
1573/// Will return slices for "abc", "def", "ghi", null, in that order.1573/// Will return slices for "abc", "def", "ghi", null, in that order.
1574/// If `buffer` is empty, the iterator will return null.1574/// If `buffer` is empty, the iterator will return null.
1575/// If `delimiter_bytes` does not exist in buffer,1575/// If `delimiter_bytes` does not exist in buffer,
...@@ -1663,7 +1663,7 @@ test "mem.tokenize (reset)" {...@@ -1663,7 +1663,7 @@ test "mem.tokenize (reset)" {
16631663
1664/// Returns an iterator that iterates over the slices of `buffer` that1664/// Returns an iterator that iterates over the slices of `buffer` that
1665/// are separated by bytes in `delimiter`.1665/// are separated by bytes in `delimiter`.
1666/// split("abc|def||ghi", "|")1666/// split(u8, "abc|def||ghi", "|")
1667/// will return slices for "abc", "def", "", "ghi", null, in that order.1667/// will return slices for "abc", "def", "", "ghi", null, in that order.
1668/// If `delimiter` does not exist in buffer,1668/// If `delimiter` does not exist in buffer,
1669/// the iterator will return `buffer`, null, in that order.1669/// the iterator will return `buffer`, null, in that order.