Skip to content

Commit 7da07ff

Browse files
author
zed.zy
committed
Improve the explanation about the behaviour of read_line
1 parent 3ba1ebe commit 7da07ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/std/src/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ pub trait BufRead: Read {
21102110
}
21112111

21122112
/// Read all bytes until a newline (the `0xA` byte) is reached, and append
2113-
/// them to the provided buffer.
2113+
/// them to the provided buffer (without clear buffer before appending to it).
21142114
///
21152115
/// This function will read bytes from the underlying stream until the
21162116
/// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes

0 commit comments

Comments
 (0)