summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-05-08 16:02:02 -0700
committerAndrew Gerrand <adg@golang.org>2013-05-08 16:02:02 -0700
commit836b670612f8cd5f7fe5455a90b8d0f3abde6d65 (patch)
treec68f8f9142ef9a55f690d1e0c79d4bbc1f2a72ef
parent0a98e78c1f2fe61b3e2b9d68898ec857d4831f79 (diff)
downloadgo-git-836b670612f8cd5f7fe5455a90b8d0f3abde6d65.tar.gz
[release-branch.go1.1] spec: fix incorrect example
««« CL 9305043 / 87762a7629b4 spec: fix incorrect example Fixes #5430. R=golang-dev, r CC=golang-dev https://golang.org/cl/9305043 »»» R=golang-dev, r CC=golang-dev https://golang.org/cl/9308044
-rw-r--r--doc/go_spec.html4
1 files 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 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of April 10, 2013",
+ "Subtitle": "Version of May 8, 2013",
"Path": "/ref/spec"
}-->
@@ -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 &lt;&lt; 3.0 // d == 8 (untyped integer constant)
const e = 1.0 &lt;&lt; 3 // e == 8 (untyped integer constant)
-const f = int32(1) &lt;&lt; 33 // f == 0 (type int32)
+const f = int32(1) &lt;&lt; 33 // illegal (constant 8589934592 overflows int32)
const g = float64(2) &gt;&gt; 1 // illegal (float64(2) is a typed floating-point constant)
const h = "foo" &gt; "bar" // h == true (untyped boolean constant)
const j = true // j == true (untyped boolean constant)