diff --git a/src/libstd/collections/hash/set.rs b/src/libstd/collections/hash/set.rs index 896573cbf8b25..d6754f10335ca 100644 --- a/src/libstd/collections/hash/set.rs +++ b/src/libstd/collections/hash/set.rs @@ -35,8 +35,8 @@ use super::state::HashState; /// /// As with the `HashMap` type, a `HashSet` requires that the elements /// implement the `Eq` and `Hash` traits. This can frequently be achieved by -/// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is -/// important that the following property holds: +/// using `#[derive(PartialEq, Eq, Hash)]`. If you implement these yourself, +/// it is important that the following property holds: /// /// ```text /// k1 == k2 -> hash(k1) == hash(k2)