Rollup merge of #57050 - RyanMarcus:master, r=zackmdavis
Fixed typo in HashMap documentation Previously "with a custom type as key", now "with a custom key type"
This commit is contained in:
commit
bba398ee2c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue