Fix typo in HashMap::with_capacity
This commit is contained in:
parent
319b88c463
commit
f5c45ad284
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue