diff options
author | Adam Bard <github@adambard.com> | 2016-06-07 21:30:27 -0700 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2016-06-07 21:30:27 -0700 |
commit | 1e05147e2fa25b1c35678ddf70f3902fc8e9835a (patch) | |
tree | d6ae94e7f2ca8bc2e86de06d3baaee814480bfe6 | |
parent | 30c8d8819aebfaf533765546a44e3012074fa2d3 (diff) | |
parent | 427f87c65588374352c6a85e52758a9609baa9bc (diff) |
Merge pull request #2272 from Subzidion/master
[go/en] Updated variable references
-rw-r--r-- | go.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown index dc684227..7b007bab 100644 --- a/go.html.markdown +++ b/go.html.markdown @@ -221,7 +221,8 @@ func learnFlowControl() { xBig := func() bool { return x > 10000 // References x declared above switch statement. } - fmt.Println("xBig:", xBig()) // true (we last assigned e^10 to x). + x = 99999 + fmt.Println("xBig:", xBig()) // true x = 1.3e3 // This makes x == 1300 fmt.Println("xBig:", xBig()) // false now. |