From: Robert Griesemer Date: Wed, 26 Sep 2012 17:31:57 +0000 (-0700) Subject: spec: permit trailing comma in conversions X-Git-Tag: go1.1rc2~2316 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=60a6ae8c3c278c3e0fcb832f2e5c085825d867cc;p=gostls13.git spec: permit trailing comma in conversions Also: Adjust prose in Conversions section to be consistent. This is a backward-compatible syntax change. For a discussion see issue 2568. Fixes #2568. Fixes #4123. R=golang-dev, r, iant, rsc CC=golang-dev https://golang.org/cl/6572049 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 7e5d5042ed..2b9f14428b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3390,7 +3390,7 @@ that can be converted to type T.

-Conversion = Type "(" Expression ")" .
+Conversion = Type "(" Expression [ "," ] ")" .
 

@@ -3464,12 +3464,11 @@ in any of these cases: x's type and T are both complex types.

  • - x is an integer or has type []byte or - []rune and T is a string type. + x is an integer or a slice of bytes or runes + and T is a string type.
  • - x is a string and T is []byte or - []rune. + x is a string and T is a slice of bytes or runes.