summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2016-06-07 21:30:27 -0700
committerAdam Bard <github@adambard.com>2016-06-07 21:30:27 -0700
commit1e05147e2fa25b1c35678ddf70f3902fc8e9835a (patch)
treed6ae94e7f2ca8bc2e86de06d3baaee814480bfe6
parent30c8d8819aebfaf533765546a44e3012074fa2d3 (diff)
parent427f87c65588374352c6a85e52758a9609baa9bc (diff)
Merge pull request #2272 from Subzidion/master
[go/en] Updated variable references
-rw-r--r--go.html.markdown3
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.