diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-03 17:56:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-03 17:56:24 +0900 |
| commit | ed80f49be9234ceb86a7ab99eb7882c1920526f9 (patch) | |
| tree | 5911a601f659cdccd2660b416c0a4aa8f821f42a /src/libcore | |
| parent | 9dd2c9eae3c08c4742e84204243b70db4210a78c (diff) | |
| parent | d935a26d9d06eee42a5554af23b55af4fc2008cc (diff) | |
| download | rust-ed80f49be9234ceb86a7ab99eb7882c1920526f9.tar.gz rust-ed80f49be9234ceb86a7ab99eb7882c1920526f9.zip | |
Rollup merge of #67736 - taralx:patch-1, r=sfackler
Less-than is asymmetric, not antisymmetric This has bothered me for a while. It's such a small nit, but...
Diffstat (limited to 'src/libcore')
| -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 |
