Skip to content

Commit ed1a8ff

Browse files
Phlosioneerfrewsxcv
authored andcommitted
Fixed typo
1 parent 1bc6c4b commit ed1a8ff

File tree

1 file changed

+1
-1
lines changed
  • src/libstd/collections/hash

1 file changed

+1
-1
lines changed

src/libstd/collections/hash/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2262,7 +2262,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
22622262
/// assert_eq!(map["poneyland"], 12);
22632263
/// if let Entry::Occupied(mut o) = map.entry("poneyland") {
22642264
/// *o.get_mut() += 10;
2265-
/// assert_eq!(o.get(), 22);
2265+
/// assert_eq!(*o.get(), 22);
22662266
///
22672267
/// // We can use the same Entry multiple times.
22682268
/// *o.get_mut() += 2;

0 commit comments

Comments
 (0)