mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:06:51 +08:00
Fixed a clerical error (#788)
This commit is contained in:
@@ -76,7 +76,7 @@ map 的初始化:`var map1 = make(map[keytype]valuetype)`。
|
||||
|
||||
相当于:`mapCreated := map[string]float32{}`。
|
||||
|
||||
mapAssigned 也是 mapList 的引用,对 mapAssigned 的修改也会影响到 mapLit 的值。
|
||||
mapAssigned 也是 mapLit 的引用,对 mapAssigned 的修改也会影响到 mapLit 的值。
|
||||
|
||||
**不要使用 new,永远用 make 来构造 map**
|
||||
|
||||
|
Reference in New Issue
Block a user