about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-14 10:55:54 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-14 10:55:54 -0700
commitd10be64e344e67e22354c840800c3c29b4a89dd0 (patch)
tree54c4685a5f97610f7ac623a358564ad004a3a685 /src/libstd
parent52067fd58fa7d450c0761fded05641274e3a8ab5 (diff)
parent32f7e673c8e095c79940882d23a3258a48150185 (diff)
downloadrust-d10be64e344e67e22354c840800c3c29b4a89dd0.tar.gz
rust-d10be64e344e67e22354c840800c3c29b4a89dd0.zip
rollup merge of #24386: nagisa/rte-fix
r? @steveklabnik
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/io/mod.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index f0f37117ed3..fa641446e17 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -172,14 +172,11 @@ pub trait Read {
     /// Read all bytes until EOF in this source, placing them into `buf`.
     ///
     /// All bytes read from this source will be appended to the specified buffer
-    /// `buf`. This function will return a call to `read` either:
+    /// `buf`. This function will continuously call `read` to append more data to
+    /// `buf` until `read` returns either `Ok(0)` or an error of
+    /// non-`ErrorKind::Interrupted` kind.
     ///
-    /// 1. Returns `Ok(0)`.
-    /// 2. Returns an error which is not of the kind `ErrorKind::Interrupted`.
-    ///
-    /// Until one of these conditions is met the function will continuously
-    /// invoke `read` to append more data to `buf`. If successful, this function
-    /// will return the total number of bytes read.
+    /// If successful, this function will return the total number of bytes read.
     ///
     /// # Errors
     ///