about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-06-30 15:37:45 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-06-30 15:37:45 -0400
commit08f9b98e57f2332da522ebf98c74a315211b98ac (patch)
tree38aebfde2b15d0817bb11e4a6c6cb07c72535f9b
parent26ff4714dd0da1c10eeeaee045794c3c0282f274 (diff)
parent8b81f76593ce044b0d822f07061c93b515f7dc01 (diff)
downloadrust-08f9b98e57f2332da522ebf98c74a315211b98ac.tar.gz
rust-08f9b98e57f2332da522ebf98c74a315211b98ac.zip
Rollup merge of #26692 - steveklabnik:gh26620, r=alexcrichton
Fixes #26620
-rw-r--r--src/libcore/cmp.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index 0269499ad54..52ed29c1b61 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -166,6 +166,8 @@ impl Ordering {
 ///
 /// - total and antisymmetric: 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 `>`.
+///
+/// When this trait is `derive`d, it produces a lexicographic ordering.
 #[stable(feature = "rust1", since = "1.0.0")]
 pub trait Ord: Eq + PartialOrd<Self> {
     /// This method returns an `Ordering` between `self` and `other`.