authorgravatar for eugenelf10@gmail.comTen Eugene <eugenelf10@gmail.com> 2026-08-31 11:24:24+05:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-08-31 23:43:22+02:00
log8bb70dbc3f0bb7a33c7fde534ca1661f169c0989
treef294b9383c56939481f3847bf13aaf41c759dcde
parentc14a630041a196c6af4959c789d90178e0fe7ae1

std.Io: fix error.StreamTooLong doc specification for Reader.allocRemaining


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

lib/std/Io/Reader.zig+3-3
......@@ -287,9 +287,9 @@ pub const LimitedAllocError = Allocator.Error || ShortError || error{StreamTooLo
287287/// Transfers all bytes from the current position to the end of the stream, up
288288/// to `limit`, returning them as a caller-owned allocated slice.
289289///
290/// If `limit` would be exceeded, `error.StreamTooLong` is returned instead. In
291/// such case, the next byte that would be read will be the first one to exceed
292/// `limit`, and all preceeding bytes have been discarded.
290/// If `limit` is reached or exceeded, `error.StreamTooLong` is returned
291/// instead. In such case, the next byte that would be read will be the first
292/// one to exceed `limit`, and all preceeding bytes have been discarded.
293293///
294294/// See also:
295295/// * `appendRemaining`