Skip to content

Commit

Permalink
Add a hint what BufRead functions do on EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Oct 31, 2017
1 parent 6713736 commit 66268e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,8 @@ 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.
///
/// # Errors
///
/// This function will ignore all instances of [`ErrorKind::Interrupted`] and
Expand Down Expand Up @@ -1470,6 +1472,8 @@ 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.
///
/// # Errors
///
/// This function has the same error semantics as [`read_until`] and will
Expand Down

0 comments on commit 66268e8

Please sign in to comment.