encoding: fix typo (#6966)

This commit is contained in:
Arvind Bright 2024-02-05 15:41:01 -08:00 committed by GitHub
parent c2b50ee081
commit d41b01db97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)