diff --git a/doc/go_spec.html b/doc/go_spec.html index dcc81ed628717f..f3d2320d86db5b 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3439,7 +3439,7 @@
-The right operand in a shift expression must have unsigned integer type
+The right operand in a shift expression must have integer type
or be an untyped constant representable by a
value of type uint
.
If the left operand of a non-constant shift expression is an untyped constant,
@@ -3586,7 +3586,9 @@
The shift operators shift the left operand by the shift count specified by the
-right operand. They implement arithmetic shifts if the left operand is a signed
+right operand, which must be positive. If the shift count is negative at run time,
+a run-time panic occurs.
+The shift operators implement arithmetic shifts if the left operand is a signed
integer and logical shifts if it is an unsigned integer.
There is no upper limit on the shift count. Shifts behave
as if the left operand is shifted n
times by 1 for a shift
@@ -5921,7 +5923,7 @@