summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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