Skip to content

Commit

Permalink
Fix usage example
Browse files Browse the repository at this point in the history
Fixes robfig#11
  • Loading branch information
robfig committed Jan 19, 2014
1 parent 34e2323 commit b024fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Callers may register Funcs to be invoked on a given schedule. Cron will run
them in their own goroutines.
c := cron.New()
c.AddFunc("0 5 * * * *", func() { fmt.Println("Every 5 minutes") })
c.AddFunc("0 30 * * * *", func() { fmt.Println("Every hour on the half hour") })
c.AddFunc("@hourly", func() { fmt.Println("Every hour") })
c.AddFunc("@every 1h30m", func() { fmt.Println("Every hour thirty") })
c.Start()
Expand Down

0 comments on commit b024fc5

Please sign in to comment.