docs: restore inline comments for NextRun/NextRuns examples

Co-authored-by: JohnRoesler <19351306+JohnRoesler@users.noreply.github.com>
Agent-Logs-Url: https://github.com/go-co-op/gocron/sessions/df5afb1e-5c66-4615-9967-a2efc2419d87
This commit is contained in:
copilot-swe-agent[bot] 2026-03-20 16:54:09 +00:00
parent a3e29a35f4
commit 413dd911c0
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,7 @@ func ExampleJob_nextRun() {
), ),
) )
// NextRun is only available after the scheduler has been started.
s.Start() s.Start()
nextRun, _ := j.NextRun() nextRun, _ := j.NextRun()
@ -286,6 +287,7 @@ func ExampleJob_nextRuns() {
), ),
) )
// NextRuns is only available after the scheduler has been started.
s.Start() s.Start()
nextRuns, _ := j.NextRuns(5) nextRuns, _ := j.NextRuns(5)