summaryrefslogtreecommitdiff
path: root/exercises/11_hashmaps
diff options
context:
space:
mode:
authorMo <76752051+mo8it@users.noreply.github.com>2024-08-08 00:40:51 +0200
committerGitHub <noreply@github.com>2024-08-08 00:40:51 +0200
commit09c3ac02f86e35348fecfdfcca6d0e8aa9e04b71 (patch)
tree77d3ea85309dbab5dd1e89f50127da5989969e7b /exercises/11_hashmaps
parent45a39585b382a28fc01128acf31c7a9d2d6ddf71 (diff)
parente65ae09789410c230a863ad219b90c434adf5e4f (diff)
Merge pull request #2062 from jimbo5922/jimbo5922-fix-hashmap3-struct-name
update struct name in hashmap3
Diffstat (limited to 'exercises/11_hashmaps')
-rw-r--r--exercises/11_hashmaps/hashmaps3.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/11_hashmaps/hashmaps3.rs b/exercises/11_hashmaps/hashmaps3.rs
index 9f8fdd7..7e9584d 100644
--- a/exercises/11_hashmaps/hashmaps3.rs
+++ b/exercises/11_hashmaps/hashmaps3.rs
@@ -10,12 +10,12 @@ use std::collections::HashMap;
// A structure to store the goal details of a team.
#[derive(Default)]
-struct Team {
+struct TeamScores {
goals_scored: u8,
goals_conceded: u8,
}
-fn build_scores_table(results: &str) -> HashMap<&str, Team> {
+fn build_scores_table(results: &str) -> HashMap<&str, TeamScores> {
// The name of the team is the key and its associated struct is the value.
let mut scores = HashMap::new();