From b26c853cae2adea7235a51ad726308e337494385 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sat, 21 Apr 2018 15:22:12 -0700 Subject: [PATCH] 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. --- doc/go1.10.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go1.10.html b/doc/go1.10.html index 4c0e847c05..9dc923661e 100644 --- a/doc/go1.10.html +++ b/doc/go1.10.html @@ -45,7 +45,7 @@ There are no significant changes to the language specification.

A corner case involving shifts by 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.