docs: Clarify insertion behavior for maps
This commit is contained in:
parent
0bd708461b
commit
0bf67d616f
@ -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
|
||||
///
|
||||
|
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user