about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorJake Goulding <jake.goulding@gmail.com>2019-02-24 10:01:27 -0500
committerJake Goulding <jake.goulding@gmail.com>2019-02-25 12:14:02 -0500
commitf1b88abffbbfd4625d4002d1eef1275829aba29c (patch)
treee345d133a5975ce6fb8aad6971e4f1857589e040 /src/libstd
parente17c48e2f21eefd59748e364234efc7037a3ec96 (diff)
downloadrust-f1b88abffbbfd4625d4002d1eef1275829aba29c.tar.gz
rust-f1b88abffbbfd4625d4002d1eef1275829aba29c.zip
Fix copy-pasted typo for read_string return value
Diffstat (limited to 'src/libstd')
-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 b634ea43e34..b49eea39177 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -1458,7 +1458,7 @@ pub trait BufRead: Read {
     ///
     /// If successful, this function will return the total number of bytes read.
     ///
-    /// An empty buffer returned indicates that the stream has reached EOF.
+    /// If this function returns `Ok(0)`, the stream has reached EOF.
     ///
     /// # Errors
     ///