From caeaf835c26b41dea7909fb94644d39445ff2854 Mon Sep 17 00:00:00 2001 From: caochunhui Date: Wed, 3 Dec 2014 15:54:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eBook/06.7.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eBook/06.7.md b/eBook/06.7.md index 0df1b82..54d32f1 100644 --- a/eBook/06.7.md +++ b/eBook/06.7.md @@ -26,7 +26,7 @@ func callback(y int, f func(int, int)) { 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 或从未返回时的索引值。 @@ -56,4 +56,4 @@ func run(op binOp, req *Request) { … } - [目录](directory.md) - 上一节:[将函数作为参数](06.7.md) -- 下一节:[闭包](06.8.md) \ No newline at end of file +- 下一节:[闭包](06.8.md)