From 2d846f65215cd35eb03b79871f79f03383df67cb Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 8 May 2013 10:42:08 -0700 Subject: [PATCH] spec: fix incorrect example Fixes #5430. R=golang-dev, r CC=golang-dev https://golang.org/cl/9305043 --- 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 5cc452d208..3938ba3e69 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -3835,7 +3835,7 @@ const Θ float64 = 3/2 // Θ == 1.0 (type float64, 3/2 is integer divisio const Π float64 = 3/2. // Π == 1.5 (type float64, 3/2. is float division) const d = 1 << 3.0 // d == 8 (untyped integer constant) const e = 1.0 << 3 // e == 8 (untyped integer constant) -const f = int32(1) << 33 // f == 0 (type int32) +const f = int32(1) << 33 // illegal (constant 8589934592 overflows int32) const g = float64(2) >> 1 // illegal (float64(2) is a typed floating-point constant) const h = "foo" > "bar" // h == true (untyped boolean constant) const j = true // j == true (untyped boolean constant) -- 2.48.1