From 5402b4376c0c51a31ea9c5ccf16b449a6ab3e79f Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 16 Sep 2021 15:00:47 -0700 Subject: spec: fix incorrect type in a shift example Thanks to @bodar (Github) for finding this. Fixes #48422. Change-Id: I031c3d82a02db1d204e2b86b494d89784d37f073 Reviewed-on: https://go-review.googlesource.com/c/go/+/350409 Trust: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Matthew Dempsky --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 6cc0b796b9..c8051f58af 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3614,7 +3614,7 @@ var i = 1<<s // 1 has type int var j int32 = 1<<s // 1 has type int32; j == 0 var k = uint64(1<<s) // 1 has type uint64; k == 1<<33 var m int = 1.0<<s // 1.0 has type int; m == 1<<33 -var n = 1.0<<s == j // 1.0 has type int; n == true +var n = 1.0<<s == j // 1.0 has type int32; n == true var o = 1<<s == 2<<s // 1 and 2 have type int; o == false var p = 1<<s == 1<<33 // 1 has type int; p == true var u = 1.0<<s // illegal: 1.0 has type float64, cannot shift -- cgit v1.2.3-54-g00ecf