mirror of
https://github.com/golang/go
synced 2024-11-18 00:24:48 -07:00
13a0f7b502
In Go1.13 and above, signed integers are permitted as shift counts as long as they are >=0.
However, the comments in the "Arithmetic operators" section says shift operators accept "unsigned integer" as of right operands. Replacing this with "integer>=0" resolves the misunderstanding that shift
operators permit only unsigned integers.
Reference: Go1.13 Release Notes: https://golang.org/doc/go1.13
Change-Id: Icd3c7734d539ab702590e992a618c9251c653c37
GitHub-Last-Rev:
|
||
---|---|---|
.. | ||
asm.html | ||
go1.17.html | ||
go_mem.html | ||
go_spec.html |