Skip to content

Commit

Permalink
lint: golangci: fix misspelling
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Dec 9, 2023
1 parent 90aca09 commit 028f1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time/timeutil/time_range.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func ParseTimeRangeInterval(s string) (TimeRange, error) {

func (tr *TimeRange) Contains(t time.Time, inclusiveMin, inclusiveMax bool) (bool, error) {
if !tr.MinSet || !tr.MaxSet {
return false, errors.New("timerange must hvae min and max both set")
return false, errors.New("timerange must have min and max both set")
}
if t.Before(tr.Min) || t.After(tr.Max) ||
(!inclusiveMin && t.Equal(tr.Min)) ||
Expand Down

0 comments on commit 028f1d7

Please sign in to comment.