about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev+love@gmail.com>2022-10-24 19:32:29 +0900
committerGitHub <noreply@github.com>2022-10-24 19:32:29 +0900
commita710f56e7d84a4fcfccdfcc48842bacee464273b (patch)
tree8ce0fe056deacdcf64bbaba0c3277db2b1ace40c
parent8e9d2b697146ffe818452d43ce0b58fc96e4c39f (diff)
parentf53b32288c1c1ce65c680a74c11312afb89407cb (diff)
downloadrust-a710f56e7d84a4fcfccdfcc48842bacee464273b.tar.gz
rust-a710f56e7d84a4fcfccdfcc48842bacee464273b.zip
Rollup merge of #103466 - jruderman:patch-2, r=Dylan-DPC
Fix grammar in docs for std::io::Read

Two independent clauses were incorrectly joined by a bare comma. The simplest fix would be to switch to a semicolon, but I think it's slightly better to keep the comma and use the coordinating conjunction "so".
-rw-r--r--library/std/src/io/mod.rs4
1 files changed, 2 insertions, 2 deletions
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 @@ pub trait Read {
     /// 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