diff options
Diffstat (limited to 'test/stringrange.go')
-rw-r--r-- | test/stringrange.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stringrange.go b/test/stringrange.go index 32ed1e5f02..6169e973b8 100644 --- a/test/stringrange.go +++ b/test/stringrange.go @@ -21,7 +21,7 @@ func main() { ok := true; cnum := 0; for i, c = range s { - rune, size := utf8.DecodeRuneInString(s, i); // check it another way + rune, size := utf8.DecodeRuneInString(s[i:len(s)]); // check it another way if i != offset { fmt.Printf("unexpected offset %d not %d\n", i, offset); ok = false; |