@@ -692,10 +692,9 @@ pub trait Read {
692
692
/// Callers have to ensure that no unchecked out-of-bounds accesses are possible even if
693
693
/// `n > buf.len()`.
694
694
///
695
- /// No guarantees are provided about the contents of `buf` when this
696
- /// function is called, so implementations cannot rely on any property of the
697
- /// contents of `buf` being true. It is recommended that *implementations*
698
- /// only write data to `buf` instead of reading its contents.
695
+ /// *Implementations* of this method can make no assumptions about the contents of `buf` when
696
+ /// this function is called. It is recommended that implementations only write data to `buf`
697
+ /// instead of reading its contents.
699
698
///
700
699
/// Correspondingly, however, *callers* of this method in unsafe code must not assume
701
700
/// any guarantees about how the implementation uses `buf`. The trait is safe to implement,
@@ -901,12 +900,10 @@ pub trait Read {
901
900
/// This function reads as many bytes as necessary to completely fill the
902
901
/// specified buffer `buf`.
903
902
///
904
- /// No guarantees are provided about the contents of `buf` when this
905
- /// function is called, so implementations cannot rely on any property of the
906
- /// contents of `buf` being true. It is recommended that implementations
907
- /// only write data to `buf` instead of reading its contents. The
908
- /// documentation on [`read`] has a more detailed explanation on this
909
- /// subject.
903
+ /// *Implementations* of this method can make no assumptions about the contents of `buf` when
904
+ /// this function is called. It is recommended that implementations only write data to `buf`
905
+ /// instead of reading its contents. The documentation on [`read`] has a more detailed
906
+ /// explanation of this subject.
910
907
///
911
908
/// # Errors
912
909
///
0 commit comments