changed wording

This commit is contained in:
Dylan DPC 2022-03-16 03:04:40 +01:00 committed by GitHub
parent 7da07ff48b
commit 2c06c861de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2110,7 +2110,8 @@ fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize> {
}
/// Read all bytes until a newline (the `0xA` byte) is reached, and append
/// them to the provided buffer (without clear buffer before appending to it).
/// them to the provided buffer. You do not need to clear the buffer before
/// appending.
///
/// This function will read bytes from the underlying stream until the
/// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes