瀏覽代碼

Fix a typo in README

Bruno Michel 6 年之前
父節點
當前提交
fa682d18e0
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      README.md
  2. 1 1
      doc.go

+ 1 - 1
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).

+ 1 - 1
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