about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-27 13:32:24 +0100
committerGitHub <noreply@github.com>2019-02-27 13:32:24 +0100
commit115c8a1f095f99dab82da7ab1276c64747ed8fcc (patch)
treede55a194a045d504a40578cd2fa1533c9ddb066d /src/libstd/io
parentfed561002582760636314f00498783e01061285b (diff)
parentf1b88abffbbfd4625d4002d1eef1275829aba29c (diff)
downloadrust-115c8a1f095f99dab82da7ab1276c64747ed8fcc.tar.gz
rust-115c8a1f095f99dab82da7ab1276c64747ed8fcc.zip
Rollup merge of #58703 - shepmaster:read_line_return, r=centril
Fix copy-pasted typo for read_string return value
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 12b158e4197..613ae7a6728 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -1578,7 +1578,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
     ///