diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index e775ded60f593e4aaf131e68508eeffa81e26344..ef691489f081c9a42b8191bd5e8ae21c02bef55e 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -505,7 +505,7 @@ fn cmp(&self, other: &Reverse) -> 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 `Ord`? /// @@ -694,7 +694,7 @@ fn partial_cmp(&self, other: &Ordering) -> Option { /// /// 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`? ///