Fix Derive Notice for HashSet
This commit is contained in:
parent
5ad6edbe52
commit
2ac380a294
@ -35,8 +35,8 @@
|
|||||||
///
|
///
|
||||||
/// As with the `HashMap` type, a `HashSet` requires that the elements
|
/// As with the `HashMap` type, a `HashSet` requires that the elements
|
||||||
/// implement the `Eq` and `Hash` traits. This can frequently be achieved by
|
/// implement the `Eq` and `Hash` traits. This can frequently be achieved by
|
||||||
/// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is
|
/// using `#[derive(PartialEq, Eq, Hash)]`. If you implement these yourself,
|
||||||
/// important that the following property holds:
|
/// it is important that the following property holds:
|
||||||
///
|
///
|
||||||
/// ```text
|
/// ```text
|
||||||
/// k1 == k2 -> hash(k1) == hash(k2)
|
/// k1 == k2 -> hash(k1) == hash(k2)
|
||||||
|
Loading…
Reference in New Issue
Block a user