This commit is contained in:
2024-04-07 21:15:38 -04:00
parent 64a7939eb7
commit 1d6ca6a3d6
5 changed files with 6 additions and 14 deletions

View File

@@ -11,18 +11,18 @@
// Execute `rustlings hint hashmaps1` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
use std::collections::HashMap;
fn fruit_basket() -> HashMap<String, u32> {
let mut basket = // TODO: declare your hash map here.
let mut basket = HashMap::new();
// Two bananas are already given for you :)
basket.insert(String::from("banana"), 2);
// TODO: Put more fruits in your basket here.
basket.insert(String::from("Abboo"), 5);
basket.insert(String::from("grap"), 5);
basket
}