From aa4f73c845f29188acf51a42db7d3d86b827cb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alva=20Sn=C3=A6d=C3=ADs?= Date: Fri, 7 Sep 2018 23:16:55 +0000 Subject: [PATCH] Update documentation for fill_buf in std::io::BufRead Brings the documentation in line with the BufReader implementation. Fixes #48022. --- src/libstd/io/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index b83f3fbe7a59c..278ee7951b3d2 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1330,7 +1330,8 @@ fn read_until(r: &mut R, delim: u8, buf: &mut Vec) /// #[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