소스 검색

Merge pull request #248 from alphapigger/fix/typo

fix typo
Unknwon 10 년 전
부모
커밋
dd933c1d4d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)