Skip to content

Commit e98feb6

Browse files
authored
Rollup merge of #58703 - shepmaster:read_line_return, r=centril
Fix copy-pasted typo for read_string return value
2 parents 8d210de + f1b88ab commit e98feb6

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
@@ -1458,7 +1458,7 @@ pub trait BufRead: Read {
14581458
///
14591459
/// If successful, this function will return the total number of bytes read.
14601460
///
1461-
/// An empty buffer returned indicates that the stream has reached EOF.
1461+
/// If this function returns `Ok(0)`, the stream has reached EOF.
14621462
///
14631463
/// # Errors
14641464
///

0 commit comments

Comments
 (0)