Skip to content

Commit 3c9e884

Browse files
authored
Rollup merge of rust-lang#54046 - snaedis:issue-48022, r=steveklabnik
Update documentation for fill_buf in std::io::BufRead Brings the documentation in line with the BufReader implementation. Fixes rust-lang#48022. This is my first PR, and I think the `E-easy` label is very cool, as so is the practice of describing the fix but leaving it for someone else; it really makes it a lot less intimidating to get started with something!
2 parents b365de9 + aa4f73c commit 3c9e884

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)