diff options
| author | bors <bors@rust-lang.org> | 2023-02-06 05:03:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-06 05:03:06 +0000 |
| commit | 0c13c172507f01d921808107d2c4ec37b43b982d (patch) | |
| tree | 78c5d852a7a2c810c25aacabe6683c7e6f53205c | |
| parent | 7c3f0d6f30eeefa58170012df10008736ac89755 (diff) | |
| parent | f5c45ad2847910d8df0c2adaf07a3b27bfca86f2 (diff) | |
| download | rust-0c13c172507f01d921808107d2c4ec37b43b982d.tar.gz rust-0c13c172507f01d921808107d2c4ec37b43b982d.zip | |
Auto merge of #107697 - kiranshila:patch-1, r=the8472
Fix typo in HashMap::with_capacity
| -rw-r--r-- | library/std/src/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs index df490358827..742c4cc7c55 100644 --- a/library/std/src/collections/hash/map.rs +++ b/library/std/src/collections/hash/map.rs @@ -238,7 +238,7 @@ impl<K, V> HashMap<K, V, RandomState> { /// /// The hash map will be able to hold at least `capacity` elements without /// reallocating. This method is allowed to allocate for more elements than - /// `capacity`. If `capacity` is 0, the hash set will not allocate. + /// `capacity`. If `capacity` is 0, the hash map will not allocate. /// /// # Examples /// |
