Skip to content

Commit d41b01d

Browse files
authored
encoding: fix typo (#6966)
1 parent c2b50ee commit d41b01d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: encoding/proto/proto.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (codec) Marshal(v any) ([]byte, error) {
5050
func (codec) Unmarshal(data []byte, v any) error {
5151
vv := messageV2Of(v)
5252
if vv == nil {
53-
return fmt.Errorf("failed to marshal, message is %T, want proto.Message", v)
53+
return fmt.Errorf("failed to unmarshal, message is %T, want proto.Message", v)
5454
}
5555

5656
return proto.Unmarshal(data, vv)

0 commit comments

Comments
 (0)