拼写错误

This commit is contained in:
caochunhui
2014-12-03 15:54:14 +08:00
parent fe985ccf2b
commit caeaf835c2

View File

@@ -26,7 +26,7 @@ func callback(y int, f func(int, int)) {
The sum of 1 and 2 is: 3 The sum of 1 and 2 is: 3
将函数作为参数的最好的例子是函数 `strings.InfexFunc()` 将函数作为参数的最好的例子是函数 `strings.IndexFunc()`
该函数的签名是 `func IndexFunc(s string, f func(c int) bool) int`,它的返回值是在函数 `f(c)` 返回 true、-1 或从未返回时的索引值。 该函数的签名是 `func IndexFunc(s string, f func(c int) bool) int`,它的返回值是在函数 `f(c)` 返回 true、-1 或从未返回时的索引值。