diff options
| author | Ralf Jung <post@ralfj.de> | 2023-09-16 11:43:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-09-16 11:43:34 +0200 |
| commit | d49123ddc9ccd18282527d90abb17b73f6b41d13 (patch) | |
| tree | 54c11d08f2ea66633ee1926a9d8ed7214b92bb5d | |
| parent | 635c4a5e612b0ee8af6615635599702d3dce9906 (diff) | |
| download | rust-d49123ddc9ccd18282527d90abb17b73f6b41d13.tar.gz rust-d49123ddc9ccd18282527d90abb17b73f6b41d13.zip | |
fix a comment about assert_receiver_is_total_eq
| -rw-r--r-- | library/core/src/cmp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/cmp.rs b/library/core/src/cmp.rs index 6d5133646b5..122f9e773af 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -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. // |
