We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ad6edb commit 2ac380aCopy full SHA for 2ac380a
src/libstd/collections/hash/set.rs
@@ -35,8 +35,8 @@ use super::state::HashState;
35
///
36
/// As with the `HashMap` type, a `HashSet` requires that the elements
37
/// implement the `Eq` and `Hash` traits. This can frequently be achieved by
38
-/// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is
39
-/// important that the following property holds:
+/// using `#[derive(PartialEq, Eq, Hash)]`. If you implement these yourself,
+/// it is important that the following property holds:
40
41
/// ```text
42
/// k1 == k2 -> hash(k1) == hash(k2)
0 commit comments