Skip to content

Commit

Permalink
Improve the explanation about the behaviour of read_line
Browse files Browse the repository at this point in the history
  • Loading branch information
zed.zy committed Mar 15, 2022
1 parent 3ba1ebe commit 7da07ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2110,7 +2110,7 @@ pub trait BufRead: Read {
}

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

0 comments on commit 7da07ff

Please sign in to comment.