about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-11-05 12:43:02 +0100
committerSteve Klabnik <steve@steveklabnik.com>2015-11-05 12:43:02 +0100
commit255b81d22cb9e5df2a4677dc7d74dd1941cfda8c (patch)
tree46777c2c459e374387cecd55f7e497f02bc3f7f7 /src/libstd
parent92eb851f582e3ddd995f837d831681251ea7735b (diff)
parente9989d526dd638fd03599d80d2e5658381f4ee68 (diff)
downloadrust-255b81d22cb9e5df2a4677dc7d74dd1941cfda8c.tar.gz
rust-255b81d22cb9e5df2a4677dc7d74dd1941cfda8c.zip
Rollup merge of #29568 - steveklabnik:gh24591, r=apasel422
Fixes #24591
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/hash/map.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 7c6add80337..965226f6355 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -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
     ///
     /// ```