We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b50ee commit d41b01dCopy full SHA for d41b01d
encoding/proto/proto.go
@@ -50,7 +50,7 @@ func (codec) Marshal(v any) ([]byte, error) {
50
func (codec) Unmarshal(data []byte, v any) error {
51
vv := messageV2Of(v)
52
if vv == nil {
53
- 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)
54
}
55
56
return proto.Unmarshal(data, vv)
0 commit comments