Skip to content

Commit

Permalink
Merge pull request #370 from karig/patch-1
Browse files Browse the repository at this point in the history
Update ch08-03-hash-maps.md
  • Loading branch information
damoasda authored Mar 12, 2024
2 parents 15bb527 + c1829df commit 11624a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch08-03-hash-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ use std::collections::HashMap;
let mut scores = HashMap::new();

scores.insert(String::from("Blau"), 10);
scores.insert(String::from("Geld"), 50);
scores.insert(String::from("Gelb"), 50);

let team_name = String::from("Blau");
let score = scores.get(&team_name).copied().unwrap_or(0);
Expand Down

0 comments on commit 11624a4

Please sign in to comment.