authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-05-03 13:14:01-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-07-01 16:35:28-07:00
log6fe9c8f03626651b7cafe01ffedac17b33588b29
tree20201a74eddbe3add0b41f111b26cb30c8e8a5f2
parentd9aa84de284f328d37bfd9feae68edf1865d023f

std.io.BufferedReader: fix peekSentinel

it was tossing 2x

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

lib/std/io/BufferedReader.zig+1-1
...@@ -511,7 +511,7 @@ pub fn takeSentinel(br: *BufferedReader, comptime sentinel: u8) DelimiterError![...@@ -511,7 +511,7 @@ pub fn takeSentinel(br: *BufferedReader, comptime sentinel: u8) DelimiterError![
511}511}
512512
513pub fn peekSentinel(br: *BufferedReader, comptime sentinel: u8) DelimiterError![:sentinel]u8 {513pub fn peekSentinel(br: *BufferedReader, comptime sentinel: u8) DelimiterError![:sentinel]u8 {
514 const result = try br.takeDelimiterInclusive(sentinel);514 const result = try br.peekDelimiterInclusive(sentinel);
515 return result[0 .. result.len - 1 :sentinel];515 return result[0 .. result.len - 1 :sentinel];
516}516}
517517