Skip to content

Commit f1b88ab

Browse files
committed
Fix copy-pasted typo for read_string return value
1 parent e17c48e commit f1b88ab

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)