From 733f6cb5989e3c0dbbf58f6005dba0b12c7f9f8d Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 21 Sep 2009 12:20:15 -0700 Subject: step 2 of the great buffer shift. make strings.Buffer handle strings and bytes with comparable efficiency. if ok, next step will be to move this code to bytes.Buffer and terminate strings.Buffer's short happy life. R=rsc DELTA=292 (212 added, 0 deleted, 80 changed) OCL=34837 CL=34849 --- src/pkg/gob/encoder_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/gob/encoder_test.go') diff --git a/src/pkg/gob/encoder_test.go b/src/pkg/gob/encoder_test.go index 94d8033f2..4095e0b12 100644 --- a/src/pkg/gob/encoder_test.go +++ b/src/pkg/gob/encoder_test.go @@ -228,7 +228,7 @@ func TestWrongTypeDecoder(t *testing.T) { } func corruptDataCheck(s string, err os.Error, t *testing.T) { - b := strings.NewBuffer(s); + b := strings.NewBufferString(s); dec := NewDecoder(b); dec.Decode(new(ET2)); if dec.state.err != err { -- cgit v1.2.3