Skip to content

Commit

Permalink
Rollup merge of rust-lang#93356 - pierwill:partialord-headline, r=dto…
Browse files Browse the repository at this point in the history
…lnay

Edit docs introduction for `std::cmp::PartialOrd`

This makes `PartialOrd` consistent with the other three traits in this module, which all include links to their corresponding mathematical concepts on Wikipedia.

<img width="500" alt="Screen Shot 2022-01-26 at 10 24 23 PM" src="https://user-images.githubusercontent.com/19642016/151291720-decd85ed-cd6e-4be0-84a9-619b98ceb386.png">
  • Loading branch information
matthiaskrgr authored Jan 28, 2022
2 parents 76aa6d8 + 7c7509b commit 68f61d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ impl PartialOrd for Ordering {
}
}

/// Trait for values that can be compared for a sort-order.
/// Trait for types that form a [partial order](https://en.wikipedia.org/wiki/Partial_order).
///
/// The `lt`, `le`, `gt`, and `ge` methods of this trait can be called using
/// the `<`, `<=`, `>`, and `>=` operators, respectively.
Expand Down

0 comments on commit 68f61d4

Please sign in to comment.