From: Robert Griesemer Date: Tue, 4 Aug 2015 17:38:50 +0000 (-0700) Subject: spec: clarify sentence about non-constant shifts X-Git-Tag: go1.5rc1~18 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=87c8707e6ffa40937191ae37e27af5d17d1a215a;p=gostls13.git spec: clarify sentence about non-constant shifts Fixes #10514. Change-Id: Iae95a304d3ebb1ed82567aa234e05dc434db984f Reviewed-on: https://go-review.googlesource.com/13098 Reviewed-by: Rob Pike Reviewed-by: Russ Cox --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 658891e08f..fd47f10530 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -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.