From 007f5672c724bba8cc9cc4ddfa5c1286f237e903 Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Mon, 13 Nov 2023 21:42:59 +0530 Subject: [PATCH] Exercise 45 --- exercises/11_hashmaps/hashmaps1.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/11_hashmaps/hashmaps1.rs b/exercises/11_hashmaps/hashmaps1.rs index 80829eaa..09522dfe 100644 --- a/exercises/11_hashmaps/hashmaps1.rs +++ b/exercises/11_hashmaps/hashmaps1.rs @@ -16,10 +16,12 @@ use std::collections::HashMap; fn fruit_basket() -> HashMap { - let mut basket = // TODO: declare your hash map here. + let mut basket : HashMap = HashMap::new(); // TODO: declare your hash map here. // Two bananas are already given for you :) basket.insert(String::from("banana"), 2); + basket.insert(String::from("apple"),3); + basket.insert(String::from("chiku"),5); // TODO: Put more fruits in your basket here.