diff --git a/eBook/04.7.md b/eBook/04.7.md index 253c999..c8ed5db 100644 --- a/eBook/04.7.md +++ b/eBook/04.7.md @@ -43,7 +43,9 @@ func main() { `Contains` 判断字符串 `s` 是否包含 `substr`: - strings.Contains(s, substr string) bool +```go +strings.Contains(s, substr string) bool +``` ## 4.7.3 判断子字符串或字符在父字符串中出现的位置(索引)