diff options
Diffstat (limited to 'src/unicode/utf8/utf8.go')
| -rw-r--r-- | src/unicode/utf8/utf8.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unicode/utf8/utf8.go b/src/unicode/utf8/utf8.go index 82fa7c0d4d..3be2f15e8a 100644 --- a/src/unicode/utf8/utf8.go +++ b/src/unicode/utf8/utf8.go @@ -263,7 +263,7 @@ func DecodeLastRune(p []byte) (r rune, size int) { // guard against O(n^2) behavior when traversing // backwards through strings with long sequences of // invalid UTF-8. - lim := max(end - UTFMax, 0) + lim := max(end-UTFMax, 0) for start--; start >= lim; start-- { if RuneStart(p[start]) { break @@ -300,7 +300,7 @@ func DecodeLastRuneInString(s string) (r rune, size int) { // guard against O(n^2) behavior when traversing // backwards through strings with long sequences of // invalid UTF-8. - lim := max(end - UTFMax, 0) + lim := max(end-UTFMax, 0) for start--; start >= lim; start-- { if RuneStart(s[start]) { break |
