mirror of https://github.com/grpc/grpc-go.git
encoding: fix typo (#6966)
This commit is contained in:
parent
c2b50ee081
commit
d41b01db97
|
@ -50,7 +50,7 @@ func (codec) Marshal(v any) ([]byte, error) {
|
|||
func (codec) Unmarshal(data []byte, v any) error {
|
||||
vv := messageV2Of(v)
|
||||
if vv == nil {
|
||||
return fmt.Errorf("failed to marshal, message is %T, want proto.Message", v)
|
||||
return fmt.Errorf("failed to unmarshal, message is %T, want proto.Message", v)
|
||||
}
|
||||
|
||||
return proto.Unmarshal(data, vv)
|
||||
|
|
Loading…
Reference in New Issue