aboutsummaryrefslogtreecommitdiff
path: root/lib/std/io/reader.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/io/reader.zig')
-rw-r--r--lib/std/io/reader.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/io/reader.zig b/lib/std/io/reader.zig
index 03744e4da4..4c682e8aba 100644
--- a/lib/std/io/reader.zig
+++ b/lib/std/io/reader.zig
@@ -40,8 +40,7 @@ pub fn Reader(
return index;
}
- /// Returns the number of bytes read. If the number read would be smaller than buf.len,
- /// error.EndOfStream is returned instead.
+ /// If the number read would be smaller than `buf.len`, `error.EndOfStream` is returned instead.
pub fn readNoEof(self: Self, buf: []u8) !void {
const amt_read = try self.readAll(buf);
if (amt_read < buf.len) return error.EndOfStream;