Skip to content

Commit

Permalink
encoding: fix typo (#6966)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvindbr8 committed Feb 5, 2024
1 parent c2b50ee commit d41b01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/proto/proto.go
Expand Up @@ -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)
Expand Down

0 comments on commit d41b01d

Please sign in to comment.