mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:34:15 +08:00
Merge pull request #51 from guyanbiao/modify_function_name
改正章节 6-9 的 function name
This commit is contained in:
@@ -25,7 +25,7 @@ func main() {
|
|||||||
fmt.Printf("The result is: %v\n", TwoAdder(3))
|
fmt.Printf("The result is: %v\n", TwoAdder(3))
|
||||||
}
|
}
|
||||||
|
|
||||||
func Add32() func(b int) int {
|
func Add2() func(b int) int {
|
||||||
return func(b int) int {
|
return func(b int) int {
|
||||||
return b + 2
|
return b + 2
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user