From: Robert Griesemer
Date: Fri, 18 Jan 2013 21:59:25 +0000 (-0800)
Subject: spec: clarify lhs syntax for range and select
X-Git-Tag: go1.1rc2~1348
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d3679726b4639c27ca6b632374cdf4be1c74dbb6;p=gostls13.git
spec: clarify lhs syntax for range and select
Fixes #4653.
R=rsc, r, iant, ken, thakis
CC=golang-dev
https://golang.org/cl/7135058
---
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 0309209c2a..239e69c987 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
@@ -4353,7 +4353,7 @@ to corresponding iteration variables and then executes the block.
-RangeClause = Expression [ "," Expression ] ( "=" | ":=" ) "range" Expression .
+RangeClause = ( ExpressionList "=" | IdentifierList ":=" ) "range" Expression .
@@ -4522,7 +4522,7 @@ cases all referring to communication operations.
SelectStmt = "select" "{" { CommClause } "}" .
CommClause = CommCase ":" { Statement ";" } .
CommCase = "case" ( SendStmt | RecvStmt ) | "default" .
-RecvStmt = [ Expression [ "," Expression ] ( "=" | ":=" ) ] RecvExpr .
+RecvStmt = [ ExpressionList "=" | IdentifierList ":=" ] RecvExpr .
RecvExpr = Expression .