Fixed typo
This commit is contained in:
parent
1bc6c4b10e
commit
ed1a8fff62
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue