about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-03-16 03:04:40 +0100
committerGitHub <noreply@github.com>2022-03-16 03:04:40 +0100
commit2c06c861de2f9674719cd1e5eac571efc359d8df (patch)
tree06e35c39816f11b422ce3e6b4254ef872d87969d
parent7da07ff48bee36fabce6a6683eabd27003e32b8d (diff)
downloadrust-2c06c861de2f9674719cd1e5eac571efc359d8df.tar.gz
rust-2c06c861de2f9674719cd1e5eac571efc359d8df.zip
changed wording
-rw-r--r--library/std/src/io/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs
index e53e1f49309..cd2197fca35 100644
--- a/library/std/src/io/mod.rs
+++ b/library/std/src/io/mod.rs
@@ -2110,7 +2110,8 @@ pub trait BufRead: Read {
     }
 
     /// Read all bytes until a newline (the `0xA` byte) is reached, and append
-    /// them to the provided buffer (without clear buffer before appending to it).
+    /// them to the provided buffer. You do not need to clear the buffer before
+    /// appending.
     ///
     /// This function will read bytes from the underlying stream until the
     /// newline delimiter (the `0xA` byte) or EOF is found. Once found, all bytes