1 parent fa765e5 commit 240968cCopy full SHA for 240968c
1 file changed
chapter7/patterns/runner/runner.go
@@ -30,7 +30,7 @@ type Runner struct {
30
tasks []func(int)
31
}
32
33
-// New returns a new ready-to-use runner.
+// New returns a new ready-to-use Runner.
34
func New(d time.Duration) *Runner {
35
return &Runner{
36
interrupt: make(chan os.Signal, 1),
@@ -39,7 +39,7 @@ func New(d time.Duration) *Runner {
39
40
41
42
-// Add attaches tasks to the runner. A task is a function that
+// Add attaches tasks to the Runner. A task is a function that
43
// takes an int ID.
44
func (r *Runner) Add(tasks ...func(int)) {
45
r.tasks = append(r.tasks, tasks...)
0 commit comments