We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6efaaed + 7bbf914 commit 5dccf4eCopy full SHA for 5dccf4e
library/core/src/cmp.rs
@@ -61,8 +61,8 @@ use self::Ordering::*;
61
///
62
/// This trait can be used with `#[derive]`. When `derive`d on structs, two
63
/// instances are equal if all fields are equal, and not equal if any fields
64
-/// are not equal. When `derive`d on enums, each variant is equal to itself
65
-/// and not equal to the other variants.
+/// are not equal. When `derive`d on enums, two instances are equal if they
+/// are the same variant and all fields are equal.
66
67
/// ## How can I implement `PartialEq`?
68
0 commit comments