diff options
Diffstat (limited to 'libgo/go/gob/decode.go')
-rw-r--r-- | libgo/go/gob/decode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/gob/decode.go b/libgo/go/gob/decode.go index f480087836e..d027d3f1a4b 100644 --- a/libgo/go/gob/decode.go +++ b/libgo/go/gob/decode.go @@ -881,7 +881,7 @@ func (dec *Decoder) decOpFor(wireId typeId, rt reflect.Type, name string, inProg } } if op == nil { - errorf("decode can't handle type %s", rt.String()) + errorf("decode can't handle type %s", rt) } return &op, indir } @@ -1110,7 +1110,7 @@ func (dec *Decoder) compileDec(remoteId typeId, ut *userTypeInfo) (engine *decEn wireStruct = wire.StructT } if wireStruct == nil { - errorf("type mismatch in decoder: want struct type %s; got non-struct", rt.String()) + errorf("type mismatch in decoder: want struct type %s; got non-struct", rt) } engine = new(decEngine) engine.instr = make([]decInstr, len(wireStruct.Field)) |