Skip to content

Commit 0c13c17

Browse files
committed
Auto merge of rust-lang#107697 - kiranshila:patch-1, r=the8472
Fix typo in HashMap::with_capacity
2 parents 7c3f0d6 + f5c45ad commit 0c13c17

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/collections/hash

1 file changed

+1
-1
lines changed

library/std/src/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl<K, V> HashMap<K, V, RandomState> {
238238
///
239239
/// The hash map will be able to hold at least `capacity` elements without
240240
/// reallocating. This method is allowed to allocate for more elements than
241-
/// `capacity`. If `capacity` is 0, the hash set will not allocate.
241+
/// `capacity`. If `capacity` is 0, the hash map will not allocate.
242242
///
243243
/// # Examples
244244
///

0 commit comments

Comments
 (0)