fix a comment about assert_receiver_is_total_eq
This commit is contained in:
parent
635c4a5e61
commit
d49123ddc9
1 changed files with 3 additions and 3 deletions
|
|
@ -281,9 +281,9 @@ pub macro PartialEq($item:item) {
|
|||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[rustc_diagnostic_item = "Eq"]
|
||||
pub trait Eq: PartialEq<Self> {
|
||||
// this method is used solely by #[deriving] to assert
|
||||
// that every component of a type implements #[deriving]
|
||||
// itself, the current deriving infrastructure means doing this
|
||||
// this method is used solely by #[derive(Eq)] to assert
|
||||
// that every component of a type implements `Eq`
|
||||
// itself. The current deriving infrastructure means doing this
|
||||
// assertion without using a method on this trait is nearly
|
||||
// impossible.
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue