Skip to content

Commit 7392f8f

Browse files
author
gimbles
committed
unequal → not equal
1 parent 75291bc commit 7392f8f

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

alloc/src/rc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,11 +1738,11 @@ impl<T: ?Sized + PartialEq> PartialEq for Rc<T> {
17381738

17391739
/// Inequality for two `Rc`s.
17401740
///
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.
17421742
///
17431743
/// If `T` also implements `Eq` (implying reflexivity of equality),
17441744
/// two `Rc`s that point to the same allocation are
1745-
/// never unequal.
1745+
/// always equal.
17461746
///
17471747
/// # Examples
17481748
///

alloc/src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2475,10 +2475,10 @@ impl<T: ?Sized + PartialEq> PartialEq for Arc<T> {
24752475

24762476
/// Inequality for two `Arc`s.
24772477
///
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.
24792479
///
24802480
/// 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.
24822482
///
24832483
/// # Examples
24842484
///

core/src/hash/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ mod sip;
158158
///
159159
/// Implementations of `hash` should ensure that the data they
160160
/// 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,
162162
/// and neither of the two sequences should be a prefix of the other.
163163
///
164164
/// For example, the standard implementation of [`Hash` for `&str`][impl] passes an extra

core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3721,7 +3721,7 @@ pub trait Iterator {
37213721
}
37223722
}
37233723

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
37253725
/// another.
37263726
///
37273727
/// # Examples

core/src/primitive_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ impl<T: Copy> Copy for (T,) {
11101110
/// - [NaN (not a number)](#associatedconstant.NAN): this value results from
11111111
/// calculations like `(-1.0).sqrt()`. NaN has some potentially unexpected
11121112
/// 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`
11141114
/// doesn't implement the `Eq` trait.
11151115
/// - It is also neither smaller nor greater than any float, making it
11161116
/// impossible to sort by the default comparison operation, which is the

std/src/primitive_docs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ impl<T: Copy> Copy for (T,) {
11101110
/// - [NaN (not a number)](#associatedconstant.NAN): this value results from
11111111
/// calculations like `(-1.0).sqrt()`. NaN has some potentially unexpected
11121112
/// 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`
11141114
/// doesn't implement the `Eq` trait.
11151115
/// - It is also neither smaller nor greater than any float, making it
11161116
/// impossible to sort by the default comparison operation, which is the

std/src/sync/remutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use crate::sys::locks as sys;
3535
/// `owner` can be checked by other threads that want to see if they already
3636
/// hold the lock, so needs to be atomic. If it compares equal, we're on the
3737
/// 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,
3939
/// synchronization is left to the mutex, making relaxed memory ordering for
4040
/// the `owner` field fine in all cases.
4141
pub struct ReentrantMutex<T> {

0 commit comments

Comments
 (0)