Skip to content

Commit

Permalink
fix readme custom parser example
Browse files Browse the repository at this point in the history
  • Loading branch information
vankofalcon authored and robfig committed May 18, 2020
1 parent 208b4f7 commit 6a8421b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ It is backwards incompatible with both v1 and v2. These updates are required:
cron.New(cron.WithSeconds())

// Seconds field, optional
cron.New(
cron.WithParser(
cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor))
cron.New(cron.WithParser(cron.NewParser(
cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor,
)))
```
- The Cron type now accepts functional options on construction rather than the
previous ad-hoc behavior modification mechanisms (setting a field, calling a setter).
Expand Down

0 comments on commit 6a8421b

Please sign in to comment.