Skip to content

Commit 6c23101

Browse files
committed
Fix mispelling
1 parent e18eceb commit 6c23101

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parser.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const (
1818
Dom
1919
Month
2020
Dow
21-
DowOptinal
21+
DowOptional
2222
Descriptor
2323
)
2424

@@ -47,7 +47,7 @@ type Parser struct {
4747

4848
func NewParser(options ParseOption) Parser {
4949
optionals := 0
50-
if options&DowOptinal > 0 {
50+
if options&DowOptional > 0 {
5151
options |= Dow
5252
optionals++
5353
}
@@ -120,7 +120,7 @@ func expandFields(fields []string, options ParseOption) []string {
120120
}
121121

122122
var defaultParser = NewParser(
123-
Second | Minute | Hour | Dom | Month | DowOptinal | Descriptor,
123+
Second | Minute | Hour | Dom | Month | DowOptional | Descriptor,
124124
)
125125

126126
// Parse returns a new crontab schedule representing the given spec.

0 commit comments

Comments
 (0)