Skip to content

Commit

Permalink
Rollup merge of rust-lang#57050 - RyanMarcus:master, r=zackmdavis
Browse files Browse the repository at this point in the history
Fixed typo in HashMap documentation

Previously "with a custom type as key", now "with a custom key type"
  • Loading branch information
kennytm committed Dec 22, 2018
2 parents 60b4ea0 + 51e4c1f commit bba398e
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 bba398e

Please sign in to comment.