Skip to content

Commit

Permalink
spec: clarify sentence about non-constant shifts
Browse files Browse the repository at this point in the history
Fixes golang#10514.

Change-Id: Iae95a304d3ebb1ed82567aa234e05dc434db984f
Reviewed-on: https://go-review.googlesource.com/13098
Reviewed-by: Rob Pike <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
  • Loading branch information
griesemer committed Aug 5, 2015
1 parent 1579822 commit 87c8707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/go_spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -3320,7 +3320,7 @@ <h3 id="Operators">Operators</h3>
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>

Expand Down

0 comments on commit 87c8707

Please sign in to comment.