Skip to content

Commit bba398e

Browse files
committed
Rollup merge of rust-lang#57050 - RyanMarcus:master, r=zackmdavis
Fixed typo in HashMap documentation Previously "with a custom type as key", now "with a custom key type"
2 parents 60b4ea0 + 51e4c1f commit bba398e

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/collections/hash

1 file changed

+1
-1
lines changed

Diff for: src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
354354
/// *stat += random_stat_buff();
355355
/// ```
356356
///
357-
/// The easiest way to use `HashMap` with a custom type as key is to derive [`Eq`] and [`Hash`].
357+
/// The easiest way to use `HashMap` with a custom key type is to derive [`Eq`] and [`Hash`].
358358
/// We must also derive [`PartialEq`].
359359
///
360360
/// [`Eq`]: ../../std/cmp/trait.Eq.html

0 commit comments

Comments
 (0)