diff --git a/example_test.go b/example_test.go index 8fb9389..3d449d1 100644 --- a/example_test.go +++ b/example_test.go @@ -267,6 +267,7 @@ func ExampleJob_nextRun() { ), ) + // NextRun is only available after the scheduler has been started. s.Start() nextRun, _ := j.NextRun() @@ -286,6 +287,7 @@ func ExampleJob_nextRuns() { ), ) + // NextRuns is only available after the scheduler has been started. s.Start() nextRuns, _ := j.NextRuns(5)