We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35bce11 + 2c06c86 commit 0732ea2Copy full SHA for 0732ea2
library/std/src/io/mod.rs
@@ -2110,7 +2110,8 @@ pub trait BufRead: Read {
2110
}
2111
2112
/// Read all bytes until a newline (the `0xA` byte) is reached, and append
2113
- /// them to the provided buffer.
+ /// them to the provided buffer. You do not need to clear the buffer before
2114
+ /// appending.
2115
///
2116
/// This function will read bytes from the underlying stream until the
2117
/// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes
0 commit comments