mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
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.
This commit is contained in:
parent
20c98dc396
commit
b26c853cae
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ There are no significant changes to the language specification.
|
|||
<p><!-- CL 60230 -->
|
||||
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
|
||||
<code>x[1.0</code> <code><<</code> <code>s]</code> where <code>s</code> is an untyped constant;
|
||||
<code>x[1.0</code> <code><<</code> <code>s]</code> where <code>s</code> is an unsigned integer;
|
||||
the <a href="/pkg/go/types/">go/types</a> package already did.
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue