Fix comment.
This commit is contained in:
parent
64f2615864
commit
7b9e08bcfa
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ func (t *TimeDuration) UnmarshalJSON(data []byte) error {
|
||||||
return errors.Errorf("failed to parse %s", data)
|
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 {
|
func (t *TimeDuration) Time() time.Time {
|
||||||
switch {
|
switch {
|
||||||
case t == nil:
|
case t == nil:
|
||||||
|
|
Loading…
Reference in a new issue