We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a98353 commit 3a6ceebCopy full SHA for 3a6ceeb
library/std/src/io/mod.rs
@@ -2153,10 +2153,11 @@ pub trait BufRead: Read {
2153
///
2154
/// This function is blocking and should be used carefully: it is possible for
2155
/// an attacker to continuously send bytes without ever sending a newline
2156
- /// or EOF.
+ /// or EOF. You can use [`take`] to limit the maximum number of bytes read.
2157
2158
/// [`Ok(0)`]: Ok
2159
- /// [`clear`]: String:::clear
+ /// [`clear`]: String::clear
2160
+ /// [`take`]: crate::io::Read::take
2161
2162
/// # Errors
2163
0 commit comments