Skip to content

Commit 7c7509b

Browse files
committed
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 respective mathematical concepts on Wikipedia.
1 parent 009c1d0 commit 7c7509b

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)