mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-18 06:58:10 -05:00
commit
8a038b946c
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ fn build_scores_table(results: &str) -> HashMap<&str, TeamScores> {
|
||||||
team_1.goals_scored += team_1_score;
|
team_1.goals_scored += team_1_score;
|
||||||
team_1.goals_conceded += team_2_score;
|
team_1.goals_conceded += team_2_score;
|
||||||
|
|
||||||
// Similarely for the second team.
|
// Similarly for the second team.
|
||||||
let team_2 = scores
|
let team_2 = scores
|
||||||
.entry(team_2_name)
|
.entry(team_2_name)
|
||||||
.or_insert_with(TeamScores::default);
|
.or_insert_with(TeamScores::default);
|
||||||
|
|
Loading…
Reference in a new issue