Skip to content

Commit aa4f73c

Browse files
author
Alva Snædís
committed
Update documentation for fill_buf in std::io::BufRead
Brings the documentation in line with the BufReader implementation. Fixes #48022.
1 parent fc81e36 commit aa4f73c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/io/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,8 @@ fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>)
13301330
///
13311331
#[stable(feature = "rust1", since = "1.0.0")]
13321332
pub trait BufRead: Read {
1333-
/// Fills the internal buffer of this object, returning the buffer contents.
1333+
/// Returns the contents of the internal buffer, filling it with more data
1334+
/// from the inner reader if it is empty.
13341335
///
13351336
/// This function is a lower-level call. It needs to be paired with the
13361337
/// [`consume`] method to function properly. When calling this

0 commit comments

Comments
 (0)