Skip to content

Commit

Permalink
Would have gotten away with it too if it weren't for those meddling t…
Browse files Browse the repository at this point in the history
…ests. -- Minor syntax errors.
  • Loading branch information
arran4 committed Oct 15, 2024
1 parent a4a86c6 commit e7f9728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calendar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestTimeParsing(t *testing.T) {
},
}

assertTime := func(evtUid string, exp time.Time, timeFunc func() (given time.Time, err error)) {
assertTime := func(evtUid string, exp time.Time, timeFunc func(ops ...any) (given time.Time, err error)) {
given, err := timeFunc()
if err == nil {
if !exp.Equal(given) {
Expand Down
2 changes: 1 addition & 1 deletion components.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (cb *ComponentBase) getTimeProp(componentProperty ComponentProperty, expect
case *time.Location:
fallBackTimezone = op
default:
return time.Time{}, fmt.Errorf("%w: option %i: %s", ErrorUnsupportedOptionalArgument, opi, reflect.TypeOf(op))
return time.Time{}, fmt.Errorf("%w: option %d: %s", ErrorUnsupportedOptionalArgument, opi, reflect.TypeOf(op))
}
}
timeProp := cb.GetProperty(componentProperty)
Expand Down

0 comments on commit e7f9728

Please sign in to comment.