]> git.lizzy.rs Git - rust.git/commitdiff
Fixed typo
authorPhlosioneer <mattmdrr2@gmail.com>
Fri, 6 Apr 2018 21:10:35 +0000 (17:10 -0400)
committerCorey Farwell <coreyf@rwell.org>
Sat, 2 Jun 2018 19:51:44 +0000 (15:51 -0400)
src/libstd/collections/hash/map.rs

index e733b0b8048104351ff2a3a645ae9c5ad1303492..4a67c444ed6588340ae89ca492f4fc508ee3c965 100644 (file)
@@ -2262,7 +2262,7 @@ pub fn get(&self) -> &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;