| author | |
| committer | |
| log | 8c32c09807ed5ae28afce3e9cf3145f350f8c4e3 |
| tree | 03f21f7227cd9ebcd5c871cf7363948da73c14a8 |
| parent | c175e53564e206f90dd8bd224b2db2fb7eca7c27 |
| signature |
1 files changed, 1 insertions(+), 1 deletions(-)
std/io.zig+1-1| ... | ... | @@ -146,7 +146,7 @@ pub fn InStream(comptime ReadError: type) type { |
| 146 | 146 | |
| 147 | 147 | /// Same as `readFull` but end of stream returns `error.EndOfStream`. |
| 148 | 148 | pub fn readNoEof(self: *Self, buf: []u8) !void { |
| 149 | const amt_read = try self.read(buf); | |
| 149 | const amt_read = try self.readFull(buf); | |
| 150 | 150 | if (amt_read < buf.len) return error.EndOfStream; |
| 151 | 151 | } |
| 152 | 152 |