File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
<!--{
2
2
"Title": "The Go Programming Language Specification",
3
- "Subtitle": "Version of Sep 14 , 2021",
3
+ "Subtitle": "Version of Sep 16 , 2021",
4
4
"Path": "/ref/spec"
5
5
}-->
6
6
@@ -3614,7 +3614,7 @@ <h3 id="Operators">Operators</h3>
3614
3614
var j int32 = 1<<s // 1 has type int32; j == 0
3615
3615
var k = uint64(1<<s) // 1 has type uint64; k == 1<<33
3616
3616
var m int = 1.0<<s // 1.0 has type int; m == 1<<33
3617
- var n = 1.0<<s == j // 1.0 has type int ; n == true
3617
+ var n = 1.0<<s == j // 1.0 has type int32 ; n == true
3618
3618
var o = 1<<s == 2<<s // 1 and 2 have type int; o == false
3619
3619
var p = 1<<s == 1<<33 // 1 has type int; p == true
3620
3620
var u = 1.0<<s // illegal: 1.0 has type float64, cannot shift
You can’t perform that action at this time.
0 commit comments