Skip to content

Commit b0c0be9

Browse files
committed
fix: fix comment error
1 parent 65f4126 commit b0c0be9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

type_format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (t FormatType[T]) Value() (driver.Value, error) {
4949
return t.StdTime(), nil
5050
}
5151

52-
// MarshalJSON implements "json.Unmarshaler" interface for FormatType generic struct.
52+
// MarshalJSON implements "json.Marshaler" interface for FormatType generic struct.
5353
func (t FormatType[T]) MarshalJSON() ([]byte, error) {
5454
if t.IsNil() || t.IsZero() || t.IsEmpty() {
5555
return []byte(`null`), nil

0 commit comments

Comments
 (0)