Skip to content

Commit

Permalink
Rollup merge of rust-lang#47216 - SergioBenitez:doc-fix, r=Mark-Simul…
Browse files Browse the repository at this point in the history
…acrum

Clarify appending behavior of 'io::Read::read_to_string()'.

A simple doc clarification.
  • Loading branch information
GuillaumeGomez authored Jan 6, 2018
2 parents b310417 + d301da5 commit 35d1555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ pub trait Read {
read_to_end(self, buf)
}

/// Read all bytes until EOF in this source, placing them into `buf`.
/// Read all bytes until EOF in this source, appending them to `buf`.
///
/// If successful, this function returns the number of bytes which were read
/// and appended to `buf`.
Expand Down

0 comments on commit 35d1555

Please # to comment.