From 60a6ae8c3c278c3e0fcb832f2e5c085825d867cc Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 26 Sep 2012 10:31:57 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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.