mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-12 21:59:18 +00:00
Update hashmaps2.rs
This commit is contained in:
parent
e3af483fa6
commit
412eec5532
@ -34,7 +34,7 @@ fn fruit_basket(basket: &mut HashMap<Fruit, u32>) {
|
||||
];
|
||||
|
||||
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!
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user