Skip to content

Commit

Permalink
Fix typo in HashMap::with_capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranshila committed Feb 5, 2023
1 parent 319b88c commit f5c45ad
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 f5c45ad

Please sign in to comment.