]> Cypherpunks repositories - gostls13.git/commitdiff
- get rid of Designator terminology
authorRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 07:06:05 +0000 (23:06 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 7 Mar 2008 07:06:05 +0000 (23:06 -0800)
SVN=111696

doc/go_lang.txt

index 9077478b39e9e681f79f668ac7f5dfcf6d9454c5..ac7b12d7d1cc5bd86c90ec025d5670b2d69f30ab 100644 (file)
@@ -1137,13 +1137,14 @@ Assignments
 ----
 
   Assignment = SingleAssignment | TupleAssignment | Send .
-  SimpleAssignment = Designator assign_op Expression .
-  TupleAssignment = DesignatorList assign_op ExpressionList .
+  SingleAssignment = PrimaryExpr assign_op Expression .
+  TupleAssignment = PrimaryExprList assign_op ExpressionList .
+  PrimaryExprList = PrimaryExpr { "," PrimaryExpr } .
   Send = '>' Expression '=' Expression .
   
   assign_op = [ add_op | mul_op ] '=' .
 
-The designator must be an l-value such as a variable, pointer indirection,
+The left-hand side must be an l-value such as a variable, pointer indirection,
 or an array indexing.
 
   x = 1
@@ -1189,7 +1190,7 @@ must denote a channel pointer value.
 
   >chan_ptr = value
   
-In assignments, the type of the expression must match the type of the designator.
+In assignments, the type of the expression must match the type of the left-hand side.
 
 
 Go statements