File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,16 @@ use crate::marker::StructuralPartialEq;
2929
3030use self :: Ordering :: * ;
3131
32- /// Trait for equality comparisons which are [partial equivalence
33- /// relations](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
32+ /// Trait for equality comparisons.
3433///
3534/// `x.eq(y)` can also be written `x == y`, and `x.ne(y)` can be written `x != y`.
3635/// We use the easier-to-read infix notation in the remainder of this documentation.
3736///
3837/// This trait allows for partial equality, for types that do not have a full
3938/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
4039/// so floating point types implement `PartialEq` but not [`trait@Eq`].
40+ /// Formally speaking, when `Rhs == Self`, this trait corresponds to a [partial equivalence
41+ /// relation](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
4142///
4243/// Implementations must ensure that `eq` and `ne` are consistent with each other:
4344///
You can’t perform that action at this time.
0 commit comments