From 8bb70dbc3f0bb7a33c7fde534ca1661f169c0989 Mon Sep 17 00:00:00 2001 From: Ten Eugene Date: Mon, 31 Aug 2026 11:24:24 +0500 Subject: [PATCH] std.Io: fix error.StreamTooLong doc specification for Reader.allocRemaining --- lib/std/Io/Reader.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Io/Reader.zig b/lib/std/Io/Reader.zig index 173f6e6a810b9054d28ada39f867fc8901a5c9d7..da1894cc83b5e01e685cfce8cd96242ec943dcc1 100644 --- a/lib/std/Io/Reader.zig +++ b/lib/std/Io/Reader.zig @@ -287,9 +287,9 @@ pub const LimitedAllocError = Allocator.Error || ShortError || error{StreamTooLo /// Transfers all bytes from the current position to the end of the stream, up /// to `limit`, returning them as a caller-owned allocated slice. /// -/// If `limit` would be exceeded, `error.StreamTooLong` is returned instead. In -/// such case, the next byte that would be read will be the first one to exceed -/// `limit`, and all preceeding bytes have been discarded. +/// If `limit` is reached or exceeded, `error.StreamTooLong` is returned +/// instead. In such case, the next byte that would be read will be the first +/// one to exceed `limit`, and all preceeding bytes have been discarded. /// /// See also: /// * `appendRemaining` -- 2.54.0