Update hashmaps2.rs

This commit is contained in:
Vikinguard 2022-11-25 01:03:21 +01:00 committed by GitHub
parent e3af483fa6
commit 412eec5532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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!
}