Clarify logic instead of using 'vice versa'

Fixes #28166
This commit is contained in:
Steve Klabnik 2015-09-30 13:24:28 -04:00
parent 3e6d7243ae
commit 3e9b993925

View File

@ -218,7 +218,7 @@ impl PartialOrd for Ordering {
///
/// The comparison must satisfy, for all `a`, `b` and `c`:
///
/// - 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
/// - transitivity: `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
///
/// Note that these requirements mean that the trait itself must be implemented symmetrically and