about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-16 11:08:50 +0000
committerbors <bors@rust-lang.org>2015-11-16 11:08:50 +0000
commit57c8a3e8b6a3200bb01d0ea60e4686a1ecfcb907 (patch)
tree1e07b5384cfa3b832c86bd2fd437298756ec6500 /src
parent94ec5f8f8975afed060b62cc0bfe6c91b6e87fac (diff)
parent0bf67d616f5033667a1493e711ffd7ad98c856a7 (diff)
downloadrust-57c8a3e8b6a3200bb01d0ea60e4686a1ecfcb907.tar.gz
rust-57c8a3e8b6a3200bb01d0ea60e4686a1ecfcb907.zip
Auto merge of #29830 - petrochenkov:mapdoc, r=alexcrichton
r? @steveklabnik
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/btree/map.rs5
-rw-r--r--src/libstd/collections/hash/map.rs5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/libcollections/btree/map.rs b/src/libcollections/btree/map.rs
index 39925ddff84..178d7a4a052 100644
--- a/src/libcollections/btree/map.rs
+++ b/src/libcollections/btree/map.rs
@@ -319,8 +319,9 @@ impl<K: Ord, V> BTreeMap<K, V> {
     ///
     /// If the map did not have this key present, `None` is returned.
     ///
-    /// If the map did have this key present, that value is returned, and the
-    /// entry is not updated. See the [module-level documentation] for more.
+    /// If the map did have this key present, the key is not updated, the
+    /// value is updated and the old value is returned.
+    /// See the [module-level documentation] for more.
     ///
     /// [module-level documentation]: index.html#insert-and-complex-keys
     ///
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs
index 965226f6355..b8482b3a2dc 100644
--- a/src/libstd/collections/hash/map.rs
+++ b/src/libstd/collections/hash/map.rs
@@ -1108,8 +1108,9 @@ impl<K, V, S> HashMap<K, V, S>
     ///
     /// If the map did not have this key present, `None` is returned.
     ///
-    /// If the map did have this key present, that value is returned, and the
-    /// entry is not updated. See the [module-level documentation] for more.
+    /// If the map did have this key present, the key is not updated, the
+    /// value is updated and the old value is returned.
+    /// See the [module-level documentation] for more.
     ///
     /// [module-level documentation]: index.html#insert-and-complex-keys
     ///