doc: fix misleading 'maps' section (#9946)

pull/9952/head
ka-weihe 2021-05-01 11:51:50 +02:00 committed by GitHub
parent fec947c7e1
commit 605019ec27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)
```