diff --git a/exercises/hashmaps/hashmaps2.rs b/exercises/hashmaps/hashmaps2.rs index 454b3e1d..42e33de5 100644 --- a/exercises/hashmaps/hashmaps2.rs +++ b/exercises/hashmaps/hashmaps2.rs @@ -34,7 +34,7 @@ fn fruit_basket(basket: &mut HashMap) { ]; for fruit in fruit_kinds { - // TODO: Put new fruits if not already present. Note that you + fruit_basket.entry(String::from("Banana")).or_insert(10);// TODO: Put new fruits if not already present. Note that you // are not allowed to put any type of fruit that's already // present! }