From dba5d519b8f5e01c9fbc6a0494399ac0b1770e4b Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Fri, 12 Jul 2019 09:47:40 +0200 Subject: [PATCH] Fix a typo in README --- README.md | 2 +- doc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8db4f550..979f71e6 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ It is backwards incompatible with both v1 and v2. These updates are required: // Seconds field, optional cron.New( cron.WithParser( - cron.SecondOptional | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) + 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). diff --git a/doc.go b/doc.go index ac6b4b07..fbee72c1 100644 --- a/doc.go +++ b/doc.go @@ -49,7 +49,7 @@ implement that by creating a custom Parser as follows. cron.New( cron.WithParser( - cron.SecondOptional | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) + cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)) The most popular alternative Cron expression format is Quartz: http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html