Skip to content

Commit

Permalink
Fix Derive Notice for HashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
killercup committed May 3, 2015
1 parent 1283044 commit 5ad6edb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libstd/collections/hash/map.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 5ad6edb

Please sign in to comment.