summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSam Zaydel <szaydel@gmail.com>2014-07-10 09:22:47 -0700
committerSam Zaydel <szaydel@gmail.com>2014-07-10 09:22:47 -0700
commit174f0baa14421834e181f37bd969d7f015a02adc (patch)
tree2f3df26ec7c3a2e0081e02367dc524523303f0fc
parent55e1c2adafcf0f2590633064aaf83af5ff1964af (diff)
Small change to inline literal functions comments.
-rw-r--r--go.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/go.html.markdown b/go.html.markdown
index e496117e..a5ea5859 100644
--- a/go.html.markdown
+++ b/go.html.markdown
@@ -195,7 +195,8 @@ func learnFlowControl() {
fmt.Println("Add + double two numbers: ",
func(a, b int) int {
return (a + b) * 2
- }(10, 2)) // Called with args (10, 2)
+ }(10, 2)) // Called with args 10 and 2
+ // Add + double two numbers: 24
// When you need it, you'll love it.
goto love