Skip to content

Commit 34fcbd5

Browse files
committed
io: fix various misref
1 parent a63ffbb commit 34fcbd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn writeMapPrefix(writer: anytype, length: u32) !usize {
121121
/// Wrapper to read value from a `std.io.GenericReader`.
122122
///
123123
/// The usage is almost same to the `fmt.Unpack`, but you
124-
/// could not peek on this reader. Calling `ValueReader.next`
124+
/// could not peek on this reader. Calling `UnpackReader.next`
125125
/// will read the supplied reader and return the header.
126126
///
127127
/// The `fmt.Unpack.raw` is replaced by `UnpackReader.rawReader` and
@@ -426,7 +426,7 @@ pub const ArrayReader = struct {
426426
/// the reader can no longer read.
427427
///
428428
/// Errors:
429-
/// - from `ValueReader.next`
429+
/// - from `UnpackReader.next`
430430
pub fn next(self: *ArrayReader, reader: anytype) !?fmt.Header {
431431
if (self.current >= self.len) {
432432
return null;

0 commit comments

Comments
 (0)