From: Jesse Ruderman Date: Mon, 24 Oct 2022 08:06:34 +0000 (-0700) Subject: Fix grammar in docs for std::io::Read X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f53b32288c1c1ce65c680a74c11312afb89407cb;hp=56f132565eb31eeb9ec7e1800a6ab2ca354e710e;p=rust.git Fix grammar in docs for std::io::Read --- diff --git a/library/std/src/io/mod.rs b/library/std/src/io/mod.rs index 0c29b001f01..23a13523fc2 100644 --- a/library/std/src/io/mod.rs +++ b/library/std/src/io/mod.rs @@ -583,7 +583,7 @@ pub trait Read { /// `n > buf.len()`. /// /// No guarantees are provided about the contents of `buf` when this - /// function is called, implementations cannot rely on any property of the + /// function is called, so implementations cannot rely on any property of the /// contents of `buf` being true. It is recommended that *implementations* /// only write data to `buf` instead of reading its contents. /// @@ -759,7 +759,7 @@ fn read_to_string(&mut self, buf: &mut String) -> Result { /// specified buffer `buf`. /// /// No guarantees are provided about the contents of `buf` when this - /// function is called, implementations cannot rely on any property of the + /// function is called, so implementations cannot rely on any property of the /// contents of `buf` being true. It is recommended that implementations /// only write data to `buf` instead of reading its contents. The /// documentation on [`read`] has a more detailed explanation on this