File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,8 @@ impl<T: Clone> Clone for Reverse<T> {
707
707
/// [lexicographic](https://en.wikipedia.org/wiki/Lexicographic_order) ordering
708
708
/// based on the top-to-bottom declaration order of the struct's members.
709
709
///
710
- /// When `derive`d on enums, variants are ordered by their discriminants.
710
+ /// When `derive`d on enums, variants are ordered primarily by their discriminants.
711
+ /// Secondarily, they are ordered by their fields.
711
712
/// By default, the discriminant is smallest for variants at the top, and
712
713
/// largest for variants at the bottom. Here's an example:
713
714
///
@@ -960,7 +961,8 @@ pub macro Ord($item:item) {
960
961
/// [lexicographic](https://en.wikipedia.org/wiki/Lexicographic_order) ordering
961
962
/// based on the top-to-bottom declaration order of the struct's members.
962
963
///
963
- /// When `derive`d on enums, variants are ordered by their discriminants.
964
+ /// When `derive`d on enums, variants are primarily ordered by their discriminants.
965
+ /// Secondarily, they are ordered by their fields.
964
966
/// By default, the discriminant is smallest for variants at the top, and
965
967
/// largest for variants at the bottom. Here's an example:
966
968
///
You can’t perform that action at this time.
0 commit comments