We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1283044 commit 5ad6edbCopy full SHA for 5ad6edb
src/libstd/collections/hash/map.rs
@@ -212,8 +212,9 @@ fn test_resize_policy() {
212
/// overridden with one of the constructors.
213
///
214
/// 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:
+/// this can frequently be achieved by using `#[derive(PartialEq, Eq, Hash)]`.
+/// If you implement these yourself, it is important that the following
217
+/// property holds:
218
219
/// ```text
220
/// k1 == k2 -> hash(k1) == hash(k2)
0 commit comments