Skip to content

Commit

Permalink
Fix mispelling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukescott committed Sep 1, 2016
1 parent e18eceb commit 6c23101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
Dom
Month
Dow
DowOptinal
DowOptional
Descriptor
)

Expand Down Expand Up @@ -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++
}
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6c23101

Please sign in to comment.