aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2019-09-04 08:42:12 -0700
committerRobert Griesemer <gri@golang.org>2019-09-04 16:01:24 +0000
commit6fcc2d85be557c6890a1ad50ee280fa3cd8088e6 (patch)
treee11863ea7d4b65020ddab79765bacdf3d0918d5d /doc/go_spec.html
parent7b294cdd8df0a9523010f6ffc80c59e64578f34b (diff)
downloadgo-6fcc2d85be557c6890a1ad50ee280fa3cd8088e6.tar.gz
go-6fcc2d85be557c6890a1ad50ee280fa3cd8088e6.zip
spec: clarify that shift count must be non-negative
Fixes #34056. Change-Id: I2c9b7a20d19f458df5dcc376e29bee6be1f09f7a Reviewed-on: https://go-review.googlesource.com/c/go/+/193277 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 4f94b14fa5..724b044aa4 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of Aug 26, 2019",
+ "Subtitle": "Version of Sep 4, 2019",
"Path": "/ref/spec"
}-->
@@ -3732,7 +3732,7 @@ be replaced by a bitwise AND operation:
<p>
The shift operators shift the left operand by the shift count specified by the
-right operand, which must be positive. If the shift count is negative at run time,
+right operand, which must be non-negative. If the shift count is negative at run time,
a <a href="#Run_time_panics">run-time panic</a> occurs.
The shift operators implement arithmetic shifts if the left operand is a signed
integer and logical shifts if it is an unsigned integer.