diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-09-28 09:14:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-28 09:14:06 +0200 |
| commit | 698448c0cd7b34594099202156ed2f7670afd6de (patch) | |
| tree | 2c1c05cb7c3662d602cb2004a5ec4e3cbf17c5bc | |
| parent | 0e338d7e23bd6029012b41af12746f8121074c7d (diff) | |
| parent | d49123ddc9ccd18282527d90abb17b73f6b41d13 (diff) | |
| download | rust-698448c0cd7b34594099202156ed2f7670afd6de.tar.gz rust-698448c0cd7b34594099202156ed2f7670afd6de.zip | |
Rollup merge of #115888 - RalfJung:assert_receiver_is_total_eq, r=dtolnay
fix a comment about assert_receiver_is_total_eq "a type implements #[deriving]" doesn't make any sense, so I assume they meant "implement `Eq`"? Also the attribute is called `derive`.
| -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 33226b07e04..36080616767 100644 --- a/library/core/src/cmp.rs +++ b/library/core/src/cmp.rs @@ -291,9 +291,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. // |
