From d301da55f8cd7b8b10771d3171ae60ba334bf067 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Fri, 5 Jan 2018 04:24:12 -0800 Subject: [PATCH] Clarify appending behavior of 'io::Read::read_to_string()'. --- src/libstd/io/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.