Skip to content

Commit 5ad6edb

Browse files
committed
Fix Derive Notice for HashMap
1 parent 1283044 commit 5ad6edb

File tree

1 file changed

+3
-2
lines changed
  • src/libstd/collections/hash

1 file changed

+3
-2
lines changed

src/libstd/collections/hash/map.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ fn test_resize_policy() {
212212
/// overridden with one of the constructors.
213213
///
214214
/// It is required that the keys implement the `Eq` and `Hash` traits, although
215-
/// this can frequently be achieved by using `#[derive(Eq, Hash)]`. If you
216-
/// implement these yourself, it is important that the following property holds:
215+
/// this can frequently be achieved by using `#[derive(PartialEq, Eq, Hash)]`.
216+
/// If you implement these yourself, it is important that the following
217+
/// property holds:
217218
///
218219
/// ```text
219220
/// k1 == k2 -> hash(k1) == hash(k2)

0 commit comments

Comments
 (0)