diff options
| author | Phlosioneer <mattmdrr2@gmail.com> | 2018-04-06 17:10:35 -0400 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2018-06-02 15:51:44 -0400 |
| commit | ed1a8fff6282e1e9ed49e3638f365c358385fd99 (patch) | |
| tree | 6d7831c953430ce0a70ea17a5937f3794aa2088d | |
| parent | 1bc6c4b10e7036be6fe61999fabf3462eeed39be (diff) | |
| download | rust-ed1a8fff6282e1e9ed49e3638f365c358385fd99.tar.gz rust-ed1a8fff6282e1e9ed49e3638f365c358385fd99.zip | |
Fixed typo
| -rw-r--r-- | src/libstd/collections/hash/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/collections/hash/map.rs b/src/libstd/collections/hash/map.rs index e733b0b8048..4a67c444ed6 100644 --- a/src/libstd/collections/hash/map.rs +++ b/src/libstd/collections/hash/map.rs @@ -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; |
