Skip to content

Commit 240968c

Browse files
fixed comments for runner code.
1 parent fa765e5 commit 240968c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

chapter7/patterns/runner/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type Runner struct {
3030
tasks []func(int)
3131
}
3232

33-
// New returns a new ready-to-use runner.
33+
// New returns a new ready-to-use Runner.
3434
func New(d time.Duration) *Runner {
3535
return &Runner{
3636
interrupt: make(chan os.Signal, 1),
@@ -39,7 +39,7 @@ func New(d time.Duration) *Runner {
3939
}
4040
}
4141

42-
// Add attaches tasks to the runner. A task is a function that
42+
// Add attaches tasks to the Runner. A task is a function that
4343
// takes an int ID.
4444
func (r *Runner) Add(tasks ...func(int)) {
4545
r.tasks = append(r.tasks, tasks...)

0 commit comments

Comments
 (0)