diff options
Diffstat (limited to 'src/unicode')
| -rw-r--r-- | src/unicode/utf8/utf8_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unicode/utf8/utf8_test.go b/src/unicode/utf8/utf8_test.go index fa23419b36..2adec97541 100644 --- a/src/unicode/utf8/utf8_test.go +++ b/src/unicode/utf8/utf8_test.go @@ -170,7 +170,7 @@ func TestDecodeRune(t *testing.T) { } r, size = DecodeRune(b[0 : len(b)-1]) if r != RuneError || size != wantsize { - t.Errorf("DecodeRune(%q) = %#04x, %d want %#04x, %d", b[0:len(b)-1], r, size, RuneError, wantsize) + t.Errorf("DecodeRune(%q) = %#04x, %d want %#04x, %d", b[:len(b)-1], r, size, RuneError, wantsize) } s = m.str[0 : len(m.str)-1] r, size = DecodeRuneInString(s) |
