Idiomatic Go code almost never uses multi-line comments, see: http://golang.org/src/pkg/net/http/request.go
> Also "// x == 1 here." should be "// x == 2 here."
No, it's correct. := declares a new variable. The newly declared, inner x shadows the outer x only within the block scope of the for loop:
http://play.golang.org/p/cP2dWyg0qw
Idiomatic Go code almost never uses multi-line comments, see: http://golang.org/src/pkg/net/http/request.go
> Also "// x == 1 here." should be "// x == 2 here."
No, it's correct. := declares a new variable. The newly declared, inner x shadows the outer x only within the block scope of the for loop:
http://play.golang.org/p/cP2dWyg0qw