diff options
| author | Jake Goulding <jake.goulding@gmail.com> | 2019-02-24 10:01:27 -0500 |
|---|---|---|
| committer | Jake Goulding <jake.goulding@gmail.com> | 2019-02-25 12:14:02 -0500 |
| commit | f1b88abffbbfd4625d4002d1eef1275829aba29c (patch) | |
| tree | e345d133a5975ce6fb8aad6971e4f1857589e040 /src/libstd | |
| parent | e17c48e2f21eefd59748e364234efc7037a3ec96 (diff) | |
| download | rust-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.rs | 2 |
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 /// |
