fix: map exercises

This commit is contained in:
Inanc Gumus
2019-05-05 00:47:55 +03:00
parent c6ec3af17e
commit 27d6620361
5 changed files with 7 additions and 9 deletions

View File

@ -6,7 +6,7 @@ package main
// Add elements to the maps that you've declared in the
// first exercise, and try them by looking up for the keys.
//
// Use map literals.
// Either use the `make()` or `map literals`.
//
// After completing the exercise, remove the data and check
// that your program still works.

View File

@ -23,11 +23,9 @@ func main() {
}
multiPhones := map[string][]string{
"bowen": []string{"202-555-0179"},
"dulin": []string{
"03.37.77.63.06", "03.37.70.50.05", "02.20.40.10.04",
},
"greco": []string{"03489940240", "03489900120"},
"bowen": {"202-555-0179"},
"dulin": {"03.37.77.63.06", "03.37.70.50.05", "02.20.40.10.04"},
"greco": {"03489940240", "03489900120"},
}
basket := map[int]map[int]int{