From: Robert Griesemer Date: Mon, 9 Nov 2009 20:35:56 +0000 (-0800) Subject: fix for incorrect composite literal grammar X-Git-Tag: weekly.2009-11-10~23 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fb5fce5532b2f18dfa2e9ea964e0365a1edbe69a;p=gostls13.git fix for incorrect composite literal grammar (issue found by ken) R=go-dev, rsc http://go/go-review/1025030 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 5860eec7f0..376046b77d 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 .