From 7cd0a4be5cdbb84142ec330daba6087eece48341 Mon Sep 17 00:00:00 2001 From: nlwkobe30 Date: Fri, 30 Aug 2024 19:05:07 +0000 Subject: all: omit unnecessary 0 in slice expression All changes are related to the code, except for the comments in src/regexp/syntax/parse.go and src/slices/slices.go. Change-Id: I73c5d3c54099749b62210aa7f3182c5eb84bb6a6 GitHub-Last-Rev: 794aa9b0539811d00e1cd42be1e8d9fe9afe0281 GitHub-Pull-Request: golang/go#69170 Reviewed-on: https://go-review.googlesource.com/c/go/+/609678 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor --- src/unicode/utf8/utf8_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unicode/utf8') 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) -- cgit v1.3