Skip to content

Commit

Permalink
Add note about HashMap::capacity's bounds
Browse files Browse the repository at this point in the history
Fixes #24591
  • Loading branch information
steveklabnik committed Nov 4, 2015
1 parent a216e84 commit e9989d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstd/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ impl<K, V, S> HashMap<K, V, S>

/// Returns the number of elements the map can hold without reallocating.
///
/// This number is a lower bound; the `HashMap<K, V>` might be able to hold
/// more, but is guaranteed to be able to hold at least this many.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit e9989d5

Please sign in to comment.