From 6bdb8ec4b96fb2f16222cb7f5e6bf356e70b3fdc Mon Sep 17 00:00:00 2001 From: Sean Keery Date: Fri, 14 Nov 2014 10:58:37 -0700 Subject: [PATCH] Add function argument missing Not enough arguments in call to c.AddFunc when I copied and pasted --- modules/cron/doc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/cron/doc.go b/modules/cron/doc.go index dbdf50127..258fe1eff 100644 --- a/modules/cron/doc.go +++ b/modules/cron/doc.go @@ -7,9 +7,9 @@ Callers may register Funcs to be invoked on a given schedule. Cron will run them in their own goroutines. c := cron.New() - c.AddFunc("0 30 * * * *", func() { fmt.Println("Every hour on the half hour") }) - c.AddFunc("@hourly", func() { fmt.Println("Every hour") }) - c.AddFunc("@every 1h30m", func() { fmt.Println("Every hour thirty") }) + c.AddFunc("Every hour on the half hour","0 30 * * * *", func() { fmt.Println("Every hour on the half hour") }) + c.AddFunc("Every hour","@hourly", func() { fmt.Println("Every hour") }) + c.AddFunc("Every hour and a half","@every 1h30m", func() { fmt.Println("Every hour thirty") }) c.Start() .. // Funcs are invoked in their own goroutine, asynchronously.