diff options
| author | kennytm <kennytm@gmail.com> | 2018-12-23 00:08:02 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-12-23 02:12:25 +0800 |
| commit | bba398ee2c771734e61fe66cfab9b80ecd60023e (patch) | |
| tree | d8f3a134340f3f256dc46a2d4458c6491d0f5b93 /src/libstd | |
| parent | 60b4ea0472810e1c223b5ec41da8d2ed9b124b18 (diff) | |
| parent | 51e4c1f320fe8fd4b00574430d285b62d10ee93b (diff) | |
| download | rust-bba398ee2c771734e61fe66cfab9b80ecd60023e.tar.gz rust-bba398ee2c771734e61fe66cfab9b80ecd60023e.zip | |
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"
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index 55a1a75d049..9c994d29202 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -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 |
