Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commit836b670

Browse files
committed
[release-branch.go1.1] spec: fix incorrect example
««« CL 9305043 / 87762a7629b4spec: fix incorrect exampleFixes#5430.R=golang-dev, rCC=golang-devhttps://golang.org/cl/9305043»»»R=golang-dev, rCC=golang-devhttps://golang.org/cl/9308044
1 parent0a98e78 commit836b670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doc/go_spec.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version ofApril 10, 2013",
3+
"Subtitle": "Version ofMay 8, 2013",
44
"Path": "/ref/spec"
55
}-->
66

@@ -3835,7 +3835,7 @@ <h3 id="Constant_expressions">Constant expressions</h3>
38353835
const Π float64 = 3/2. // Π == 1.5 (type float64, 3/2. is float division)
38363836
const d = 1 &lt;&lt; 3.0 // d == 8 (untyped integer constant)
38373837
const e = 1.0 &lt;&lt; 3 // e == 8 (untyped integer constant)
3838-
const f = int32(1) &lt;&lt; 33 //f == 0 (type int32)
3838+
const f = int32(1) &lt;&lt; 33 //illegal (constant 8589934592 overflows int32)
38393839
const g = float64(2) &gt;&gt; 1 // illegal (float64(2) is a typed floating-point constant)
38403840
const h = "foo" &gt; "bar" // h == true (untyped boolean constant)
38413841
const j = true // j == true (untyped boolean constant)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp