Improve the explanation about the behaviour of read_line
This commit is contained in:
@@ -2110,7 +2110,7 @@ pub trait BufRead: Read {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Read all bytes until a newline (the `0xA` byte) is reached, and append
|
/// 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
|
/// This function will read bytes from the underlying stream until the
|
||||||
/// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes
|
/// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes
|
||||||
|
|||||||
Reference in New Issue
Block a user