Skip to content

Commit

Permalink
Auto merge of #107697 - kiranshila:patch-1, r=the8472
Browse files Browse the repository at this point in the history
Fix typo in HashMap::with_capacity
  • Loading branch information
bors committed Feb 6, 2023
2 parents 7c3f0d6 + f5c45ad commit 0c13c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 0c13c17

Please sign in to comment.