mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
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:
@@ -354,7 +354,7 @@ fn capacity(&self, raw_cap: usize) -> usize {
|
||||
/// *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
|
||||
|
||||
Reference in New Issue
Block a user