| author | |
| committer | |
| log | 4d306ebd32f43363300188989a0bed99eb89c791 |
| tree | 4488c2b96e3696f4b555be8a746bb2bb40a4e533 |
| parent | 476cbe871aedf13a48be040dd04aa2fc5e59332a |
oops. #142641 files changed, 1 insertions(+), 1 deletions(-)
lib/std/io/reader.zig+1-1| ... | ... | @@ -30,7 +30,7 @@ pub fn Reader( |
| 30 | 30 | /// means the stream reached the end. Reaching the end of a stream is not an error |
| 31 | 31 | /// condition. |
| 32 | 32 | pub fn readAll(self: Self, buffer: []u8) Error!usize { |
| 33 | return readAtLeast(self, buffer, 1); | |
| 33 | return readAtLeast(self, buffer, buffer.len); | |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /// Returns the number of bytes read, calling the underlying read |