From: Robert Griesemer Date: Thu, 11 Jun 2015 20:21:46 +0000 (-0700) Subject: spec: clarify meaning of x op= y X-Git-Tag: go1.5beta1~286 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=637d59859d3f13a55eaab7d683b5061fcbfd616c;p=gostls13.git spec: clarify meaning of x op= y Suggested by mdempsky (see also issue #11161). Change-Id: I1ab28febe19b7a092029499015073ce8749b4d99 Reviewed-on: https://go-review.googlesource.com/10960 Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go_spec.html b/doc/go_spec.html index b5f18f3a02..4b8d60b8e4 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -4388,7 +4388,7 @@ a[i] = 23 An assignment operation x op= y where op is a binary arithmetic operation is equivalent to x = x op -y but evaluates x +(y) but evaluates x only once. The op= construct is a single token. In assignment operations, both the left- and right-hand expression lists must contain exactly one single-valued expression, and the left-hand