We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6d724 commit 3e9b993Copy full SHA for 3e9b993
src/libcore/cmp.rs
@@ -218,7 +218,7 @@ impl PartialOrd for Ordering {
218
///
219
/// The comparison must satisfy, for all `a`, `b` and `c`:
220
221
-/// - antisymmetry: if `a < b` then `!(a > b)` and vice versa; and
+/// - antisymmetry: if `a < b` then `!(a > b)`, as well as `a > b` implying `!(a < b)`; and
222
/// - transitivity: `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
223
224
/// Note that these requirements mean that the trait itself must be implemented symmetrically and
0 commit comments