]> git.lizzy.rs Git - rust.git/commitdiff
Clarify appending behavior of 'io::Read::read_to_string()'.
authorSergio Benitez <sb@sergio.bz>
Fri, 5 Jan 2018 12:24:12 +0000 (04:24 -0800)
committerSergio Benitez <sb@sergio.bz>
Fri, 5 Jan 2018 12:24:12 +0000 (04:24 -0800)
src/libstd/io/mod.rs

index e9b707c57ebbf57a6f043d9873b26ef4e521a916..ad9cf1eed7013374e669fd006584831af76af77a 100644 (file)
@@ -601,7 +601,7 @@ fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize> {
         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`.