Rollup merge of #47216 - SergioBenitez:doc-fix, r=Mark-Simulacrum

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

A simple doc clarification.
This commit is contained in:
Guillaume Gomez 2018-01-06 02:13:36 +01:00 committed by GitHub
commit 35d15554bd

View File

@ -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`.