diff options
Diffstat (limited to 'src/pkg/gob/encoder_test.go')
-rw-r--r-- | src/pkg/gob/encoder_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/gob/encoder_test.go b/src/pkg/gob/encoder_test.go index a7e66a57e..3e82d8f76 100644 --- a/src/pkg/gob/encoder_test.go +++ b/src/pkg/gob/encoder_test.go @@ -50,8 +50,7 @@ func TestBasicEncoder(t *testing.T) { } // Decode the result by hand to verify; - state := new(decodeState); - state.b = b; + state := newDecodeState(b); // The output should be: // 0) The length, 38. length := decodeUint(state); |