Fix Derive Notice for HashSet

This commit is contained in:
Pascal Hertleif 2015-05-03 21:51:41 +02:00
parent 5ad6edbe52
commit 2ac380a294

View File

@ -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)