]> Cypherpunks repositories - gostls13.git/commitdiff
spec: clarify sentence about non-constant shifts
authorRobert Griesemer <gri@golang.org>
Tue, 4 Aug 2015 17:38:50 +0000 (10:38 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 5 Aug 2015 17:00:11 +0000 (17:00 +0000)
Fixes #10514.

Change-Id: Iae95a304d3ebb1ed82567aa234e05dc434db984f
Reviewed-on: https://go-review.googlesource.com/13098
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
doc/go_spec.html

index 658891e08fa4ed8913d01ca501d9dbd5b557d19c..fd47f10530263580b74172d9e3748963d8ec4107 100644 (file)
@@ -3320,7 +3320,7 @@ to the type of the other operand.
 The right operand in a shift expression must have unsigned integer type
 or be an untyped constant that can be converted to unsigned integer type.
 If the left operand of a non-constant shift expression is an untyped constant,
-the type of the constant is what it would be if the shift expression were
+it is first converted to the type it would assume if the shift expression were
 replaced by its left operand alone.
 </p>