Browse Source

Fixed the description of func AddJob.

Paulo Benatto 9 years ago
parent
commit
85b1d4ffa8
1 changed files with 1 additions and 1 deletions
  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 {