1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-27 23:12:20 +00:00

Merge pull request #256 from fuwensun/pr1-3-3f

ch1-3-fix indentation
This commit is contained in:
chai2010 2018-08-08 14:16:50 +08:00 committed by GitHub
commit a8223f8135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ func forOnString(s string, forBody func(i int, r rune)) {
for i := 0; len(s) > 0; {
r, size := utf8.DecodeRuneInString(s)
forBody(i, r)
s = s[size:]
s = s[size:]
i += size
}
}