Skip to content

Commit 032aa12

Browse files
authored
Update text/0000-read-buf.md
1 parent 1cba4fb commit 032aa12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/0000-read-buf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ impl Read for TcpStream {
233233
buf.assume_init(nread);
234234
// And indicate that we've written the bytes as well. Unlike `assume_initialized`, this method is safe,
235235
// and asserts that the written portion of the buffer does not advance beyond the initialized portion of
236-
// the buffer. If we didn't call `assume_initialized` above, this call could panic.
236+
// the buffer. If we didn't call `assume_init` above, this call could panic.
237237
buf.add_filled(nread);
238238

239239
Ok(())

0 commit comments

Comments
 (0)