Update documentation for fill_buf in std::io::BufRead
Brings the documentation in line with the BufReader implementation. Fixes #48022.
This commit is contained in:
parent
fc81e36242
commit
aa4f73c845
1 changed files with 2 additions and 1 deletions
|
@ -1330,7 +1330,8 @@ fn read_until<R: BufRead + ?Sized>(r: &mut R, delim: u8, buf: &mut Vec<u8>)
|
|||
///
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub trait BufRead: Read {
|
||||
/// Fills the internal buffer of this object, returning the buffer contents.
|
||||
/// Returns the contents of the internal buffer, filling it with more data
|
||||
/// from the inner reader if it is empty.
|
||||
///
|
||||
/// This function is a lower-level call. It needs to be paired with the
|
||||
/// [`consume`] method to function properly. When calling this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue