Skip to content

Commit

Permalink
Rollup merge of rust-lang#23499 - mbrubeck:doc-edit, r=huonw
Browse files Browse the repository at this point in the history
 Multiple people have been suprised by this aspect of read_line's behavior, which is not obvious from the docs.
  • Loading branch information
Manishearth committed Mar 20, 2015
2 parents dbe084b + a7a28d7 commit 90e7f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ pub trait BufRead: Read {
read_until(self, byte, buf)
}

/// Read all bytes until a newline byte (the 0xA byte) is reached.
/// Read all bytes until a newline byte (the 0xA byte) is reached, and
/// append them to the provided buffer.
///
/// This function will continue to read (and buffer) bytes from the
/// underlying stream until the newline delimiter (the 0xA byte) or EOF is
Expand Down

0 comments on commit 90e7f47

Please sign in to comment.