File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1738,11 +1738,11 @@ impl<T: ?Sized + PartialEq> PartialEq for Rc<T> {
1738
1738
1739
1739
/// Inequality for two `Rc`s.
1740
1740
///
1741
- /// Two `Rc`s are unequal if their inner values are unequal .
1741
+ /// Two `Rc`s are not equal if their inner values are not equal .
1742
1742
///
1743
1743
/// If `T` also implements `Eq` (implying reflexivity of equality),
1744
1744
/// two `Rc`s that point to the same allocation are
1745
- /// never unequal .
1745
+ /// always equal .
1746
1746
///
1747
1747
/// # Examples
1748
1748
///
Original file line number Diff line number Diff line change @@ -2475,10 +2475,10 @@ impl<T: ?Sized + PartialEq> PartialEq for Arc<T> {
2475
2475
2476
2476
/// Inequality for two `Arc`s.
2477
2477
///
2478
- /// Two `Arc`s are unequal if their inner values are unequal .
2478
+ /// Two `Arc`s are not equal if their inner values are not equal .
2479
2479
///
2480
2480
/// If `T` also implements `Eq` (implying reflexivity of equality),
2481
- /// two `Arc`s that point to the same value are never unequal .
2481
+ /// two `Arc`s that point to the same value are always equal .
2482
2482
///
2483
2483
/// # Examples
2484
2484
///
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ mod sip;
158
158
///
159
159
/// Implementations of `hash` should ensure that the data they
160
160
/// pass to the `Hasher` are prefix-free. That is,
161
- /// unequal values should cause two different sequences of values to be written,
161
+ /// values which are not equal should cause two different sequences of values to be written,
162
162
/// and neither of the two sequences should be a prefix of the other.
163
163
///
164
164
/// For example, the standard implementation of [`Hash` for `&str`][impl] passes an extra
Original file line number Diff line number Diff line change @@ -3721,7 +3721,7 @@ pub trait Iterator {
3721
3721
}
3722
3722
}
3723
3723
3724
- /// Determines if the elements of this [`Iterator`] are unequal to those of
3724
+ /// Determines if the elements of this [`Iterator`] are not equal to those of
3725
3725
/// another.
3726
3726
///
3727
3727
/// # Examples
Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ impl<T: Copy> Copy for (T,) {
1110
1110
/// - [NaN (not a number)](#associatedconstant.NAN): this value results from
1111
1111
/// calculations like `(-1.0).sqrt()`. NaN has some potentially unexpected
1112
1112
/// behavior:
1113
- /// - It is unequal to any float, including itself! This is the reason `f32`
1113
+ /// - It is not equal to any float, including itself! This is the reason `f32`
1114
1114
/// doesn't implement the `Eq` trait.
1115
1115
/// - It is also neither smaller nor greater than any float, making it
1116
1116
/// impossible to sort by the default comparison operation, which is the
Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ impl<T: Copy> Copy for (T,) {
1110
1110
/// - [NaN (not a number)](#associatedconstant.NAN): this value results from
1111
1111
/// calculations like `(-1.0).sqrt()`. NaN has some potentially unexpected
1112
1112
/// behavior:
1113
- /// - It is unequal to any float, including itself! This is the reason `f32`
1113
+ /// - It is not equal to any float, including itself! This is the reason `f32`
1114
1114
/// doesn't implement the `Eq` trait.
1115
1115
/// - It is also neither smaller nor greater than any float, making it
1116
1116
/// impossible to sort by the default comparison operation, which is the
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ use crate::sys::locks as sys;
35
35
/// `owner` can be checked by other threads that want to see if they already
36
36
/// hold the lock, so needs to be atomic. If it compares equal, we're on the
37
37
/// same thread that holds the mutex and memory access can use relaxed ordering
38
- /// since we're not dealing with multiple threads. If it compares unequal ,
38
+ /// since we're not dealing with multiple threads. If it's not equal ,
39
39
/// synchronization is left to the mutex, making relaxed memory ordering for
40
40
/// the `owner` field fine in all cases.
41
41
pub struct ReentrantMutex < T > {
You can’t perform that action at this time.
0 commit comments