|
@@ -46,7 +46,7 @@ func main() {
|
|
|
map1["Washington"] = 25
|
|
map1["Washington"] = 25
|
|
|
value, isPresent = map1["Beijing"]
|
|
value, isPresent = map1["Beijing"]
|
|
|
if isPresent {
|
|
if isPresent {
|
|
|
- fmt.Printf("The value of \"Beijin\" in map1 is: %d\n", value)
|
|
|
|
|
|
|
+ fmt.Printf("The value of \"Beijing\" in map1 is: %d\n", value)
|
|
|
} else {
|
|
} else {
|
|
|
fmt.Printf("map1 does not contain Beijing")
|
|
fmt.Printf("map1 does not contain Beijing")
|
|
|
}
|
|
}
|