We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 903b526 + 57046e1 commit f16ce2aCopy full SHA for f16ce2a
library/std/src/io/buffered/bufreader.rs
@@ -109,9 +109,13 @@ impl<R: Read + ?Sized> BufReader<R> {
109
///
110
/// `n` must be less than or equal to `capacity`.
111
112
- /// the returned slice may be less than `n` bytes long if
+ /// The returned slice may be less than `n` bytes long if
113
/// end of file is reached.
114
115
+ /// After calling this method, you may call [`consume`](BufRead::consume)
116
+ /// with a value less than or equal to `n` to advance over some or all of
117
+ /// the returned bytes.
118
+ ///
119
/// ## Examples
120
121
/// ```rust
0 commit comments