Skip to content

Commit

Permalink
Small change to inline literal functions comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
szaydel committed Jul 10, 2014
1 parent 55e1c2a commit 174f0ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 174f0ba

Please sign in to comment.