Skip to content

Commit 51e4c1f

Browse files
authored
Fixed typo in HashMap documentation
Previously "with a custom type as key", now "with a custom key type"
1 parent 01c6ea2 commit 51e4c1f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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)