Created
September 22, 2010 16:41
-
-
Save gregworley/592043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func f() { | |
for i := 0; i < 10; i++ { | |
g := func(i int) { | |
fmt.Printf("%d", i) | |
} | |
g(i) | |
} | |
} | |
func main() { | |
f() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment