Skip to content

Commit 68f61d4

Browse files
authored
Rollup merge of rust-lang#93356 - pierwill:partialord-headline, r=dtolnay
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">
2 parents 76aa6d8 + 7c7509b commit 68f61d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cmp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ impl PartialOrd for Ordering {
880880
}
881881
}
882882

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

0 commit comments

Comments
 (0)