about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorSergio Benitez <sb@sergio.bz>2018-01-05 04:24:12 -0800
committerSergio Benitez <sb@sergio.bz>2018-01-05 04:24:12 -0800
commitd301da55f8cd7b8b10771d3171ae60ba334bf067 (patch)
tree71eb212e117ebb660b451b525601357d4b74e1a1 /src/libstd/io
parent8a11b8cdd7cc7214c2bb9e77a6c961dd4dad9b7c (diff)
downloadrust-d301da55f8cd7b8b10771d3171ae60ba334bf067.tar.gz
rust-d301da55f8cd7b8b10771d3171ae60ba334bf067.zip
Clarify appending behavior of 'io::Read::read_to_string()'.
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index e9b707c57eb..ad9cf1eed70 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -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`.