mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 18:40:57 +03:00
Auto merge of #29830 - petrochenkov:mapdoc, r=alexcrichton
r? @steveklabnik
This commit is contained in:
@@ -319,8 +319,9 @@ pub fn get_mut<Q: ?Sized>(&mut self, key: &Q) -> Option<&mut V> where K: Borrow<
|
||||
///
|
||||
/// 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 @@ pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut 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
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user