Przeglądaj źródła

Merge pull request #248 from alphapigger/fix/typo

fix typo
Unknwon 10 lat temu
rodzic
commit
dd933c1d4d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      eBook/04.7.md

+ 1 - 1
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)