File tree 1 file changed +3
-2
lines changed
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;
29
29
30
30
use self :: Ordering :: * ;
31
31
32
- /// Trait for equality comparisons which are [partial equivalence
33
- /// relations](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
32
+ /// Trait for equality comparisons.
34
33
///
35
34
/// `x.eq(y)` can also be written `x == y`, and `x.ne(y)` can be written `x != y`.
36
35
/// We use the easier-to-read infix notation in the remainder of this documentation.
37
36
///
38
37
/// This trait allows for partial equality, for types that do not have a full
39
38
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
40
39
/// 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).
41
42
///
42
43
/// Implementations must ensure that `eq` and `ne` are consistent with each other:
43
44
///
You can’t perform that action at this time.
0 commit comments