Files
rust/src/liballoc
Mark Simulacrum a689b2d8ac Rollup merge of #51312 - frewsxcv:clarify-hash-map-entry-get-mut, r=dtolnay
Clarify the difference between get_mut and into_mut for OccupiedEntry

The examples for both hash_map::OccupiedEntry::get_mut and
hash_map::OccupiedEntry::into_mut were almost identical. This led to some
confusion over the difference, namely why you would ever use get_mut when
into_mut gives alonger lifetime. Reddit thread:
https://www.reddit.com/r/rust/comments/8a5swr/why_does_hashmaps

This commit adds two lines and a comment to the example, to show that the
entry object can be re-used after calling get_mut.

Closes https://github.com/rust-lang/rust/issues/49745
2018-06-02 19:55:09 -06:00
..
2018-06-03 00:29:50 +08:00
2018-05-30 05:35:48 +09:00
2018-05-22 17:24:49 -07:00
2018-05-17 08:47:25 -06:00
2018-05-25 22:55:33 +02:00
2018-04-22 10:08:49 -07:00
2018-06-01 00:04:26 -06:00
2017-11-21 15:33:45 +01:00
2018-05-30 05:35:48 +09:00
2018-06-01 17:13:26 +02:00