]> Cypherpunks repositories - gostls13.git/commitdiff
doc: correct statement in go1.10 release notes
authorRodolfo Carvalho <rhcarvalho@gmail.com>
Sat, 21 Apr 2018 22:24:25 +0000 (22:24 +0000)
committerIan Lance Taylor <iant@golang.org>
Mon, 23 Apr 2018 22:21:48 +0000 (22:21 +0000)
The language spec requires the RHS operand of shift expressions to be unsigned integers.

The changes in CL 60230 and the related CL 81277 refer to a variable s of type uint.
The "untyped constant" here refers to 1.0, not s.

Change-Id: Id2b884816af7f79f453afcb8c34ade2d34e18bc2
GitHub-Last-Rev: b26c853cae2adea7235a51ad726308e337494385
GitHub-Pull-Request: golang/go#24989
Reviewed-on: https://go-review.googlesource.com/108676
Reviewed-by: Robert Griesemer <gri@golang.org>
doc/go1.10.html

index 4c0e847c050ec5fe56c5697805457239efeb1877..2974fef9a3ab72feba8f5bad704abe6819a565d4 100644 (file)
@@ -43,9 +43,9 @@ There are no significant changes to the language specification.
 </p>
 
 <p><!-- CL 60230 -->
-A corner case involving shifts by untyped constants has been clarified,
+A corner case involving shifts of untyped constants has been clarified,
 and as a result the compilers have been updated to allow the index expression
-<code>x[1.0</code>&nbsp;<code>&lt;&lt;</code>&nbsp;<code>s]</code> where <code>s</code> is an untyped constant;
+<code>x[1.0</code>&nbsp;<code>&lt;&lt;</code>&nbsp;<code>s]</code> where <code>s</code> is an unsigned integer;
 the <a href="/pkg/go/types/">go/types</a> package already did.
 </p>