From f1b88abffbbfd4625d4002d1eef1275829aba29c Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Sun, 24 Feb 2019 10:01:27 -0500 Subject: [PATCH] Fix copy-pasted typo for read_string return value --- 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 b634ea43e34e5..b49eea391772a 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 ///