From 707e5acd713702ca1067a48fe792aec53aef7a04 Mon Sep 17 00:00:00 2001 From: Christopher Wedgwood Date: Wed, 12 Oct 2011 13:42:04 -0700 Subject: updates: append(y,[]byte(z)...) -> append(y,z...)" (more are possible but omitted for now as they are part of specific tests where rather than changing what is there we should probably expand the tests to cover the new case) R=rsc, dvyukov CC=golang-dev https://golang.org/cl/5247058 --- src/pkg/bytes/bytes_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/bytes') diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go index 55aa0a065c..ce3f37e4de 100644 --- a/src/pkg/bytes/bytes_test.go +++ b/src/pkg/bytes/bytes_test.go @@ -829,7 +829,7 @@ var ReplaceTests = []ReplaceTest{ func TestReplace(t *testing.T) { for _, tt := range ReplaceTests { - in := append([]byte(tt.in), []byte("")...) + in := append([]byte(tt.in), ""...) in = in[:len(tt.in)] out := Replace(in, []byte(tt.old), []byte(tt.new), tt.n) if s := string(out); s != tt.out { -- cgit v1.3-5-g9baa