Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SSushmitha8 committed Oct 17, 2024
1 parent 4bcadec commit 8b42afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xtime/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (d Duration) Msgsize() int {
return msgp.Int64Size
}

// Implements yaml.Marshaler - Converts duration to human-readable format (e.g., "2h", "30m")
// MarshalYAML implements yaml.Marshaler - Converts duration to human-readable format (e.g., "2h", "30m")
func (d Duration) MarshalYAML() (interface{}, error) {
return time.Duration(d).String(), nil
}

0 comments on commit 8b42afc

Please sign in to comment.