mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: fix misleading 'maps' section (#9946)
This commit is contained in:
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:
|
||||
```v
|
||||
numbers := map{
|
||||
1: 'one'
|
||||
2: 'two'
|
||||
'one': 1
|
||||
'two': 2
|
||||
}
|
||||
println(numbers)
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user