From 637d59859d3f13a55eaab7d683b5061fcbfd616c Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 11 Jun 2015 13:21:46 -0700 Subject: [PATCH] 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 --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.48.1