Skip to content

Commit 9968ed8

Browse files
authored
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".
2 parents a3618d4 + f53b322 commit 9968ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/io/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ pub trait Read {
583583
/// `n > buf.len()`.
584584
///
585585
/// No guarantees are provided about the contents of `buf` when this
586-
/// function is called, implementations cannot rely on any property of the
586+
/// function is called, so implementations cannot rely on any property of the
587587
/// contents of `buf` being true. It is recommended that *implementations*
588588
/// only write data to `buf` instead of reading its contents.
589589
///
@@ -759,7 +759,7 @@ pub trait Read {
759759
/// specified buffer `buf`.
760760
///
761761
/// No guarantees are provided about the contents of `buf` when this
762-
/// function is called, implementations cannot rely on any property of the
762+
/// function is called, so implementations cannot rely on any property of the
763763
/// contents of `buf` being true. It is recommended that implementations
764764
/// only write data to `buf` instead of reading its contents. The
765765
/// documentation on [`read`] has a more detailed explanation on this

0 commit comments

Comments
 (0)