Skip to content

Commit

Permalink
Merge pull request robfig#49 from patito/master
Browse files Browse the repository at this point in the history
Fixed the description of func AddJob.
  • Loading branch information
robfig committed Mar 28, 2016
2 parents 124a4d2 + 85b1d4f commit 376980a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (c *Cron) AddFunc(spec string, cmd func()) error {
return c.AddJob(spec, FuncJob(cmd))
}

// AddFunc adds a Job to the Cron to be run on the given schedule.
// AddJob adds a Job to the Cron to be run on the given schedule.
func (c *Cron) AddJob(spec string, cmd Job) error {
schedule, err := Parse(spec)
if err != nil {
Expand Down

0 comments on commit 376980a

Please sign in to comment.