We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cba4fb commit 032aa12Copy full SHA for 032aa12
text/0000-read-buf.md
@@ -233,7 +233,7 @@ impl Read for TcpStream {
233
buf.assume_init(nread);
234
// And indicate that we've written the bytes as well. Unlike `assume_initialized`, this method is safe,
235
// 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.
+ // the buffer. If we didn't call `assume_init` above, this call could panic.
237
buf.add_filled(nread);
238
239
Ok(())
0 commit comments