aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes
diff options
context:
space:
mode:
authorChristopher Wedgwood <cw@f00f.org>2011-10-12 13:42:04 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2011-10-12 13:42:04 -0700
commit707e5acd713702ca1067a48fe792aec53aef7a04 (patch)
tree5e9466dbbed47ae5d45c7069f997c9c96703a893 /src/pkg/bytes
parent3b5ff0fb147729f9590a00df8fb56b5d4bfeac7b (diff)
downloadgo-707e5acd713702ca1067a48fe792aec53aef7a04.tar.xz
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
Diffstat (limited to 'src/pkg/bytes')
-rw-r--r--src/pkg/bytes/bytes_test.go2
1 files changed, 1 insertions, 1 deletions
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("<spare>")...)
+ in := append([]byte(tt.in), "<spare>"...)
in = in[:len(tt.in)]
out := Replace(in, []byte(tt.old), []byte(tt.new), tt.n)
if s := string(out); s != tt.out {