diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-09-30 13:24:28 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-09-30 13:24:28 -0400 |
| commit | 3e9b993925477a3c4506b02373c75605fe17c2f0 (patch) | |
| tree | b41f50213e293fdbafa28406d2f4f76fe9913c22 /src/libcore | |
| parent | 3e6d7243ae9749eff27fd320cb422e42291e79d4 (diff) | |
| download | rust-3e9b993925477a3c4506b02373c75605fe17c2f0.tar.gz rust-3e9b993925477a3c4506b02373c75605fe17c2f0.zip | |
Clarify logic instead of using 'vice versa'
Fixes #28166
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 3344d7ea5d7..fa1f4727bc0 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -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 |
