about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-28 15:20:27 +0100
committerGitHub <noreply@github.com>2022-01-28 15:20:27 +0100
commitcfe03006b7e36403921cf1019bad90f32705130e (patch)
tree30cb40103e7f54016d33abfe32b6acd9e444130b
parent25cd639a4b4d67d056e7a8dd3218c89b40af34f4 (diff)
parent7c7509bc3b1de8845a00f50b5e21a311b5361dc9 (diff)
downloadrust-cfe03006b7e36403921cf1019bad90f32705130e.tar.gz
rust-cfe03006b7e36403921cf1019bad90f32705130e.zip
Rollup merge of #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">
-rw-r--r--library/core/src/cmp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs
index 1af352d542a..a3e77479911 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.