From fb5fce5532b2f18dfa2e9ea964e0365a1edbe69a Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 9 Nov 2009 12:35:56 -0800 Subject: [PATCH] fix for incorrect composite literal grammar (issue found by ken) R=go-dev, rsc http://go/go-review/1025030 --- doc/go_spec.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 5860eec7f0c..376046b77da 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1890,8 +1890,9 @@ LiteralType = StructType | ArrayType | "[" "..." "]" ElementType | SliceType | MapType | TypeName | "(" LiteralType ")" . ElementList = Element { "," Element } [ "," ] . Element = [ Key ":" ] Value . -Key = FieldName | Index . +Key = FieldName | ElementIndex . FieldName = identifier . +ElementIndex = Expression . Value = Expression .