summaryrefslogtreecommitdiff
path: root/src/pkg/gob/encoder_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2009-09-21 12:20:15 -0700
committerRob Pike <r@golang.org>2009-09-21 12:20:15 -0700
commit733f6cb5989e3c0dbbf58f6005dba0b12c7f9f8d (patch)
treea72df200d684802b179e7d8d383364cfc7faf2fd /src/pkg/gob/encoder_test.go
parent7c382eda41a69fa223674aa180fbc901974abc28 (diff)
downloadgolang-733f6cb5989e3c0dbbf58f6005dba0b12c7f9f8d.tar.gz
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
Diffstat (limited to 'src/pkg/gob/encoder_test.go')
-rw-r--r--src/pkg/gob/encoder_test.go2
1 files changed, 1 insertions, 1 deletions
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 {