Преглед на файлове

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 {