From 7c7509bc3b1de8845a00f50b5e21a311b5361dc9 Mon Sep 17 00:00:00 2001 From: pierwill Date: Wed, 26 Jan 2022 20:57:46 -0600 Subject: [PATCH] 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. --- library/core/src/cmp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index 1af352d542ac6..a3e7747991190 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -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.