Compare commits

..

No commits in common. "v3" and "v3.10.2" have entirely different histories.
v3 ... v3.10.2

View File

@ -142,7 +142,7 @@ func (c *jsonpbCodecV2) Marshal(d []byte, v interface{}, opts ...codec.Option) (
marshalOptions = f marshalOptions = f
} }
} }
return marshalOptions.MarshalAppend(d[:0], m) return marshalOptions.MarshalAppend(d, m)
default: default:
return nil, codec.ErrInvalidMessage return nil, codec.ErrInvalidMessage
} }