From a96a12322b7e0ada3eab003339a9190fe00481ef Mon Sep 17 00:00:00 2001 From: Alpha Pigger Date: Thu, 31 Mar 2016 15:35:17 +0800 Subject: [PATCH] fix typo --- eBook/04.7.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/04.7.md b/eBook/04.7.md index 372e143..8ea2fa3 100644 --- a/eBook/04.7.md +++ b/eBook/04.7.md @@ -62,7 +62,7 @@ strings.LastIndex(s, str string) int 如果 `ch` 是非 ASCII 编码的字符,建议使用以下函数来对字符进行定位: ```go -strings.IndexRune(s string, ch int) int +strings.IndexRune(s string, r rune) int ``` 示例 4.14 [index_in_string.go](examples/chapter_4/index_in_string.go)