Skip to content

Commit

Permalink
example typos
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Nov 21, 2024
1 parent e64b950 commit c993e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ Alternatively, you can use the `ParseFromReader` function to read rules from an
The package validates input and provides specific errors:
```go
// These will return errors
_, err1 := cronrange.Parse("25:00-26:00 1-5 *"*) // Invalid hours
_, err2 := cronrange.Parse("17:20-21:35 7 *"*) // Invalid day of week
_, err1 := cronrange.Parse("25:00-26:00 1-5 * *") // Invalid hours
_, err2 := cronrange.Parse("17:20-21:35 7 * *") // Invalid day of week
_, err3 := cronrange.Parse("17:20-21:35 1-5 32 *") // Invalid day of month
_, err4 := cronrange.Parse("17:20-21:35 1-5 * 13") // Invalid month
_, err5 := cronrange.Parse("17:20-21:35 1-5 *") // Wrong number of fields
Expand Down

0 comments on commit c993e0e

Please sign in to comment.