diff options
| author | Pascal Hertleif <killercup@gmail.com> | 2015-05-03 21:50:37 +0200 |
|---|---|---|
| committer | Pascal Hertleif <killercup@gmail.com> | 2015-05-03 21:50:37 +0200 |
| commit | 5ad6edbe528113640d5a53656fa3601a3dda6cd8 (patch) | |
| tree | 4925e30b0d104a5a8f8671ae02bbb6a3327ddee0 | |
| parent | 1283044a1a48fae610e7b602e0eb876748c7fb73 (diff) | |
| download | rust-5ad6edbe528113640d5a53656fa3601a3dda6cd8.tar.gz rust-5ad6edbe528113640d5a53656fa3601a3dda6cd8.zip | |
Fix Derive Notice for HashMap
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 9d0b0dde74f..40d287b1806 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -212,8 +212,9 @@ fn test_resize_policy() { /// overridden with one of the constructors. /// /// It is required that the keys implement the `Eq` and `Hash` traits, although -/// this can frequently be achieved by using `#[derive(Eq, Hash)]`. If you -/// implement these yourself, it is important that the following property holds: +/// this can frequently be achieved by 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) |
