Skip to content

Commit 7aa3926

Browse files
authored
Translation correct
Translation correct
1 parent 1365b3d commit 7aa3926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

EN/map.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
Use slices as map values
1212
```
1313
mp1: = make (map [int] [] int)
14-
mp2: = make (map [int] * [] int)
14+
mp2: = make (map [int] *[] int)
1515
```
1616

1717
When only traversing the key KEY, use the following form, without changing the value to the anonymous variable form, ignore the value:
@@ -45,9 +45,9 @@ var mapData sync.Map
4545
4646
4747
#Iterate over all key-value pairs in sync.Map
48-
mapData.Range (func (k, v interface {}) bool {
48+
mapData.Range (func (k, v interface{}) bool {
4949
    fmt.Println ("list-kv:% v,% v", k, v)
5050
    return true
5151
})
5252
53-
```
53+
```

0 commit comments

Comments
 (0)