Skip to content

Commit d49123d

Browse files
committed
fix a comment about assert_receiver_is_total_eq
1 parent 635c4a5 commit d49123d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/cmp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ pub macro PartialEq($item:item) {
281281
#[stable(feature = "rust1", since = "1.0.0")]
282282
#[rustc_diagnostic_item = "Eq"]
283283
pub trait Eq: PartialEq<Self> {
284-
// this method is used solely by #[deriving] to assert
285-
// that every component of a type implements #[deriving]
286-
// itself, the current deriving infrastructure means doing this
284+
// this method is used solely by #[derive(Eq)] to assert
285+
// that every component of a type implements `Eq`
286+
// itself. The current deriving infrastructure means doing this
287287
// assertion without using a method on this trait is nearly
288288
// impossible.
289289
//

0 commit comments

Comments
 (0)