doc: fix misleading 'maps' section (#9946)
parent
fec947c7e1
commit
605019ec27
|
@ -838,8 +838,8 @@ Maps can have keys of type string, rune, integer, float or voidptr.
|
||||||
The whole map can be initialized using this short syntax:
|
The whole map can be initialized using this short syntax:
|
||||||
```v
|
```v
|
||||||
numbers := map{
|
numbers := map{
|
||||||
1: 'one'
|
'one': 1
|
||||||
2: 'two'
|
'two': 2
|
||||||
}
|
}
|
||||||
println(numbers)
|
println(numbers)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue