Skip to content

Commit

Permalink
Fixed typo in HashMap documentation
Browse files Browse the repository at this point in the history
Previously "with a custom type as key", now "with a custom key type"
  • Loading branch information
RyanMarcus authored Dec 21, 2018
1 parent 01c6ea2 commit 51e4c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ const DISPLACEMENT_THRESHOLD: usize = 128;
/// *stat += random_stat_buff();
/// ```
///
/// The easiest way to use `HashMap` with a custom type as key is to derive [`Eq`] and [`Hash`].
/// The easiest way to use `HashMap` with a custom key type is to derive [`Eq`] and [`Hash`].
/// We must also derive [`PartialEq`].
///
/// [`Eq`]: ../../std/cmp/trait.Eq.html
Expand Down

0 comments on commit 51e4c1f

Please sign in to comment.