diff options
author | Robert Griesemer <gri@golang.org> | 2015-08-04 10:38:50 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2015-08-05 17:00:11 +0000 |
commit | 87c8707e6ffa40937191ae37e27af5d17d1a215a (patch) | |
tree | 46e2ae41fc8c42259a520fd99a26d4f7f953f0a3 | |
parent | 1579822be1c157946eda56466186f46fbedcc12a (diff) | |
download | go-87c8707e6ffa40937191ae37e27af5d17d1a215a.tar.gz go-87c8707e6ffa40937191ae37e27af5d17d1a215a.zip |
spec: clarify sentence about non-constant shifts
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>
-rw-r--r-- | doc/go_spec.html | 2 |
1 files changed, 1 insertions, 1 deletions
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. </p> |