mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 02:35:53 +08:00
改正 function name
This commit is contained in:
@@ -25,7 +25,7 @@ func main() {
|
||||
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 b + 2
|
||||
}
|
||||
|
Reference in New Issue
Block a user