Fix comment.

This commit is contained in:
Mariano Cano 2019-03-25 14:18:46 -07:00
parent 64f2615864
commit 7b9e08bcfa

View file

@ -102,7 +102,7 @@ func (t *TimeDuration) UnmarshalJSON(data []byte) error {
return errors.Errorf("failed to parse %s", data)
}
// Time set once the embedded time and returns it.
// Time calculates the embedded time.Time, sets it if necessary, and returns it.
func (t *TimeDuration) Time() time.Time {
switch {
case t == nil: