Skip to content

Commit

Permalink
derive explanation for PartialOrd should match that for Ord
Browse files Browse the repository at this point in the history
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
  • Loading branch information
carols10cents committed May 23, 2016
1 parent 1e493fd commit bbfb6e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/cmp.rs
Expand Up @@ -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
///
Expand Down

0 comments on commit bbfb6e7

Please sign in to comment.