Skip to content

Commit 90e7f47

Browse files
committed
Rollup merge of #23499 - mbrubeck:doc-edit, r=huonw
Multiple people have been suprised by this aspect of read_line's behavior, which is not obvious from the docs.
2 parents dbe084b + a7a28d7 commit 90e7f47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/io/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,8 @@ pub trait BufRead: Read {
584584
read_until(self, byte, buf)
585585
}
586586

587-
/// Read all bytes until a newline byte (the 0xA byte) is reached.
587+
/// Read all bytes until a newline byte (the 0xA byte) is reached, and
588+
/// append them to the provided buffer.
588589
///
589590
/// This function will continue to read (and buffer) bytes from the
590591
/// underlying stream until the newline delimiter (the 0xA byte) or EOF is

0 commit comments

Comments
 (0)