From 605019ec2787eecc78dd6fb782adfdc01347490e Mon Sep 17 00:00:00 2001 From: ka-weihe Date: Sat, 1 May 2021 11:51:50 +0200 Subject: [PATCH] doc: fix misleading 'maps' section (#9946) --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 4c7a777f37..3878ddeaed 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -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) ```