File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ impl<T: Ord> Ord for Reverse<T> {
505
505
///
506
506
/// This trait can be used with `#[derive]`. When `derive`d on structs, it will produce a
507
507
/// lexicographic ordering based on the top-to-bottom declaration order of the struct's members.
508
- /// When `derive`d on enums, variants are ordered by their top-to-bottom declaration order.
508
+ /// When `derive`d on enums, variants are ordered by their top-to-bottom discriminant order.
509
509
///
510
510
/// ## How can I implement `Ord`?
511
511
///
@@ -694,7 +694,7 @@ impl PartialOrd for Ordering {
694
694
///
695
695
/// This trait can be used with `#[derive]`. When `derive`d on structs, it will produce a
696
696
/// lexicographic ordering based on the top-to-bottom declaration order of the struct's members.
697
- /// When `derive`d on enums, variants are ordered by their top-to-bottom declaration order.
697
+ /// When `derive`d on enums, variants are ordered by their top-to-bottom discriminant order.
698
698
///
699
699
/// ## How can I implement `PartialOrd`?
700
700
///
You can’t perform that action at this time.
0 commit comments