We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e27011 commit 4d3b31dCopy full SHA for 4d3b31d
examples/maps/maps.go
@@ -10,7 +10,7 @@ func main() {
10
// 要创建一个空 map,需要使用内建函数 `make`:`make(map[key-type]val-type)`。
11
m := make(map[string]int)
12
13
- // 使用典型的 `make[key] = val` 语法来设置键值对。
+ // 使用典型的 `name[key] = val` 语法来设置键值对。
14
m["k1"] = 7
15
m["k2"] = 13
16
0 commit comments