]> git.lizzy.rs Git - rust.git/commitdiff
Fix grammar in docs for std::io::Read
authorJesse Ruderman <jruderman@gmail.com>
Mon, 24 Oct 2022 08:06:34 +0000 (01:06 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Oct 2022 08:06:34 +0000 (01:06 -0700)
library/std/src/io/mod.rs

index 0c29b001f011854f229153eb7843f715c16a2034..23a13523fc275be62e588a04935d0ffa12f51d6f 100644 (file)
@@ -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<usize> {
     /// 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