Skip to content

Commit 2ac380a

Browse files
committed
Fix Derive Notice for HashSet
1 parent 5ad6edb commit 2ac380a

File tree

1 file changed

+2
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+2
-2
lines changed

src/libstd/collections/hash/set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ use super::state::HashState;
3535
///
3636
/// As with the `HashMap` type, a `HashSet` requires that the elements
3737
/// 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:
38+
/// using `#[derive(PartialEq, Eq, Hash)]`. If you implement these yourself,
39+
/// it is important that the following property holds:
4040
///
4141
/// ```text
4242
/// k1 == k2 -> hash(k1) == hash(k2)

0 commit comments

Comments
 (0)