Browse Source

Fix mispelling

Luke Scott 9 years ago
parent
commit
6c23101832
1 changed files with 3 additions and 3 deletions
  1. 3 3
      parser.go

+ 3 - 3
parser.go

@@ -18,7 +18,7 @@ const (
 	Dom
 	Month
 	Dow
-	DowOptinal
+	DowOptional
 	Descriptor
 )
 
@@ -47,7 +47,7 @@ type Parser struct {
 
 func NewParser(options ParseOption) Parser {
 	optionals := 0
-	if options&DowOptinal > 0 {
+	if options&DowOptional > 0 {
 		options |= Dow
 		optionals++
 	}
@@ -120,7 +120,7 @@ func expandFields(fields []string, options ParseOption) []string {
 }
 
 var defaultParser = NewParser(
-	Second | Minute | Hour | Dom | Month | DowOptinal | Descriptor,
+	Second | Minute | Hour | Dom | Month | DowOptional | Descriptor,
 )
 
 // Parse returns a new crontab schedule representing the given spec.