Browse Source

Merge pull request #49 from patito/master

Fixed the description of func AddJob.
Rob Figueiredo 10 năm trước cách đây
mục cha
commit
376980ae45
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 {