about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-11-25 20:48:53 +0100
committerRalf Jung <post@ralfj.de>2022-11-25 20:48:53 +0100
commit34de2573f5a66f6f000d71f6933aa190dcfb17a1 (patch)
treefaf57216c133d2b8d046aa01cd214a5e467806f3
parent051cab2b842113b18da28259f4b85d0a7556f7f1 (diff)
downloadrust-34de2573f5a66f6f000d71f6933aa190dcfb17a1.tar.gz
rust-34de2573f5a66f6f000d71f6933aa190dcfb17a1.zip
PERs are homogeneous
-rw-r--r--library/core/src/cmp.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs
index 5db5cbfc3df..949896e5748 100644
--- a/library/core/src/cmp.rs
+++ b/library/core/src/cmp.rs
@@ -29,8 +29,7 @@ use crate::marker::StructuralPartialEq;
 
 use self::Ordering::*;
 
-/// Trait for equality comparisons which are [partial equivalence
-/// relations](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
+/// Trait for equality comparisons.
 ///
 /// `x.eq(y)` can also be written `x == y`, and `x.ne(y)` can be written `x != y`.
 /// We use the easier-to-read infix notation in the remainder of this documentation.
@@ -38,6 +37,8 @@ use self::Ordering::*;
 /// This trait allows for partial equality, for types that do not have a full
 /// equivalence relation. For example, in floating point numbers `NaN != NaN`,
 /// so floating point types implement `PartialEq` but not [`trait@Eq`].
+/// Formally speaking, when `Rhs == Self`, this trait corresponds to a [partial equivalence
+/// relation](https://en.wikipedia.org/wiki/Partial_equivalence_relation).
 ///
 /// Implementations must ensure that `eq` and `ne` are consistent with each other:
 ///