1
Fork 0

Fixed typo

This commit is contained in:
Phlosioneer 2018-04-06 17:10:35 -04:00 committed by Corey Farwell
parent 1bc6c4b10e
commit ed1a8fff62

View file

@ -2262,7 +2262,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
/// assert_eq!(map["poneyland"], 12);
/// if let Entry::Occupied(mut o) = map.entry("poneyland") {
/// *o.get_mut() += 10;
/// assert_eq!(o.get(), 22);
/// assert_eq!(*o.get(), 22);
///
/// // We can use the same Entry multiple times.
/// *o.get_mut() += 2;