mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
Small change to inline literal functions comments.
This commit is contained in:
parent
55e1c2adaf
commit
174f0baa14
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user