Skip to content

Commit 57c8a3e

Browse files
committed
Auto merge of #29830 - petrochenkov:mapdoc, r=alexcrichton
r? @steveklabnik
2 parents 94ec5f8 + 0bf67d6 commit 57c8a3e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/libcollections/btree/map.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,9 @@ impl<K: Ord, V> BTreeMap<K, V> {
319319
///
320320
/// If the map did not have this key present, `None` is returned.
321321
///
322-
/// If the map did have this key present, that value is returned, and the
323-
/// entry is not updated. See the [module-level documentation] for more.
322+
/// If the map did have this key present, the key is not updated, the
323+
/// value is updated and the old value is returned.
324+
/// See the [module-level documentation] for more.
324325
///
325326
/// [module-level documentation]: index.html#insert-and-complex-keys
326327
///

src/libstd/collections/hash/map.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,9 @@ impl<K, V, S> HashMap<K, V, S>
11081108
///
11091109
/// If the map did not have this key present, `None` is returned.
11101110
///
1111-
/// If the map did have this key present, that value is returned, and the
1112-
/// entry is not updated. See the [module-level documentation] for more.
1111+
/// If the map did have this key present, the key is not updated, the
1112+
/// value is updated and the old value is returned.
1113+
/// See the [module-level documentation] for more.
11131114
///
11141115
/// [module-level documentation]: index.html#insert-and-complex-keys
11151116
///

0 commit comments

Comments
 (0)