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