about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-08-24 11:48:46 +0900
committerGitHub <noreply@github.com>2020-08-24 11:48:46 +0900
commit427e969c4334fb2d4e2c8b25fff9a729c0a754aa (patch)
treeef21bf5d850a70df544730a7f6fc578c58440a24
parentb8e456f2db80e2f9bf030232315ff2c9137be7fb (diff)
parent18f47d81dae6740a4b62262cf2518ea1cfe19e62 (diff)
downloadrust-427e969c4334fb2d4e2c8b25fff9a729c0a754aa.tar.gz
rust-427e969c4334fb2d4e2c8b25fff9a729c0a754aa.zip
Rollup merge of #75826 - ayushmishra2005:misleading_documentation_for_derived_Ord_PartialOrd, r=KodrAus
Corrected Misleading documentation for derived Ord/PartialOrd implementation

Corrected Misleading documentation for derived Ord/PartialOrd implementation

Fixes #75620
-rw-r--r--library/core/src/cmp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs
index e775ded60f5..ef691489f08 100644
--- a/library/core/src/cmp.rs
+++ b/library/core/src/cmp.rs
@@ -505,7 +505,7 @@ impl<T: Ord> Ord for Reverse<T> {
 ///
 /// This trait can be used with `#[derive]`. When `derive`d on structs, it will produce a
 /// lexicographic ordering based on the top-to-bottom declaration order of the struct's members.
-/// When `derive`d on enums, variants are ordered by their top-to-bottom declaration order.
+/// When `derive`d on enums, variants are ordered by their top-to-bottom discriminant order.
 ///
 /// ## How can I implement `Ord`?
 ///
@@ -694,7 +694,7 @@ impl PartialOrd for Ordering {
 ///
 /// This trait can be used with `#[derive]`. When `derive`d on structs, it will produce a
 /// lexicographic ordering based on the top-to-bottom declaration order of the struct's members.
-/// When `derive`d on enums, variants are ordered by their top-to-bottom declaration order.
+/// When `derive`d on enums, variants are ordered by their top-to-bottom discriminant order.
 ///
 /// ## How can I implement `PartialOrd`?
 ///