Skip to content

Commit 11552e4

Browse files
authored
Rollup merge of rust-lang#58703 - shepmaster:read_line_return, r=centril
Fix copy-pasted typo for read_string return value
2 parents 08e2d0d + f1b88ab commit 11552e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ pub trait BufRead: Read {
15781578
///
15791579
/// If successful, this function will return the total number of bytes read.
15801580
///
1581-
/// An empty buffer returned indicates that the stream has reached EOF.
1581+
/// If this function returns `Ok(0)`, the stream has reached EOF.
15821582
///
15831583
/// # Errors
15841584
///

0 commit comments

Comments
 (0)