about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>2016-05-21 10:39:31 -0400
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>2016-05-23 10:03:44 -0400
commitbbfb6e762b65bdb34fbafef540e5c32408f213d0 (patch)
treed71db455948f024cced5c3745f0dc1fbc7f7f0dd /src/libcore
parent1e493fd979c826c44b2fa5d4b74302d405fbd17d (diff)
downloadrust-bbfb6e762b65bdb34fbafef540e5c32408f213d0.tar.gz
rust-bbfb6e762b65bdb34fbafef540e5c32408f213d0.zip
`derive` explanation for PartialOrd should match that for Ord
I think these just got out of sync, but both use a lexicographic
ordering.

Relevant commits in the history of these explanations:
* 8b81f76 on 2015-06-30
* e22770b on 2016-02-09
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cmp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs
index cd0bbcd3356..75cd56b79f4 100644
--- a/src/libcore/cmp.rs
+++ b/src/libcore/cmp.rs
@@ -254,8 +254,8 @@ impl PartialOrd for Ordering {
 /// total order. For example, for floating point numbers, `NaN < 0 == false` and `NaN >= 0 ==
 /// false` (cf. IEEE 754-2008 section 5.11).
 ///
-/// This trait can be used with `#[derive]`. When `derive`d, it will produce an ordering
-/// based on the top-to-bottom declaration order of the struct's members.
+/// This trait can be used with `#[derive]`. When `derive`d, it will produce a lexicographic
+/// ordering based on the top-to-bottom declaration order of the struct's members.
 ///
 /// # Examples
 ///