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