From 2c06c861de2f9674719cd1e5eac571efc359d8df Mon Sep 17 00:00:00 2001 From: Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> Date: Wed, 16 Mar 2022 03:04:40 +0100 Subject: [PATCH] changed wording --- library/std/src/io/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ fn read_until(&mut self, byte: u8, buf: &mut Vec) -> Result { } /// 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