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.
This commit is contained in:
pierwill 2022-01-26 20:57:46 -06:00
parent 009c1d0248
commit 7c7509bc3b

View file

@ -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.