From 412eec553220f5b622b2d58837e9ac7a045f8450 Mon Sep 17 00:00:00 2001 From: Vikinguard <115805628+Vikinguard@users.noreply.github.com> Date: Fri, 25 Nov 2022 01:03:21 +0100 Subject: [PATCH] Update hashmaps2.rs --- exercises/hashmaps/hashmaps2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! }