Преглед изворни кода

Merge pull request #49 from patito/master

Fixed the description of func AddJob.
Rob Figueiredo пре 10 година
родитељ
комит
376980ae45
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cron.go

+ 1 - 1
cron.go

@@ -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 {