diff options
| author | JP Sugarbroad <taralx@gmail.com> | 2019-12-30 12:17:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-30 12:17:23 -0800 |
| commit | d935a26d9d06eee42a5554af23b55af4fc2008cc (patch) | |
| tree | 6bea3308c123f8dc4cba377b4c769e899817eb03 | |
| parent | 9d6f87184e5116cf4a96f6686eb67994f19908a5 (diff) | |
| download | rust-d935a26d9d06eee42a5554af23b55af4fc2008cc.tar.gz rust-d935a26d9d06eee42a5554af23b55af4fc2008cc.zip | |
Less-than is asymmetric, not antisymmetric
This has bothered me for a while. It's such a small nit, but...
| -rw-r--r-- | src/libcore/cmp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 0d4788dfc57..06e7e45c701 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -495,7 +495,7 @@ impl<T: Ord> Ord for Reverse<T> { /// /// An order is a total order if it is (for all `a`, `b` and `c`): /// -/// - total and antisymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and +/// - total and asymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and /// - transitive, `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`. /// /// ## Derivable @@ -674,7 +674,7 @@ impl PartialOrd for Ordering { /// /// The comparison must satisfy, for all `a`, `b` and `c`: /// -/// - antisymmetry: if `a < b` then `!(a > b)`, as well as `a > b` implying `!(a < b)`; and +/// - asymmetry: 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 |
