From: Rodolfo Carvalho
Date: Sat, 21 Apr 2018 22:24:25 +0000 (+0000)
Subject: doc: correct statement in go1.10 release notes
X-Git-Tag: go1.11beta1~717
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c0769741f541d2382c5c9b4506d684a738d7e53e;p=gostls13.git
doc: correct statement in go1.10 release notes
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
---
diff --git a/doc/go1.10.html b/doc/go1.10.html
index 4c0e847c05..2974fef9a3 100644
--- a/doc/go1.10.html
+++ b/doc/go1.10.html
@@ -43,9 +43,9 @@ There are no significant changes to the language specification.
-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
-x[1.0
<<
s]
where s
is an untyped constant;
+x[1.0
<<
s]
where s
is an unsigned integer;
the go/types package already did.