Skip to content

Commit f746363

Browse files
committed
oversight: update Add() comment to account for func(context.Context)
1 parent 2a7206e commit f746363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tree.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ func (t *Tree) init() {
129129
// Add attaches a new child process to a running oversight tree. This call must
130130
// be used on running oversight trees. If the tree is halted, it is going to
131131
// fail with ErrTreeNotRunning. The valid types are ChildProcessSpecification,
132-
// ChildProcess, and *Tree. If the added child process is invalid, it is going
133-
// to fail with ErrInvalidChildProcessType.
132+
// ChildProcess, func(context.Context) and *Tree. If the added child process is
133+
// invalid, it is going to fail with ErrInvalidChildProcessType.
134134
func (t *Tree) Add(spec interface{}) error {
135135
t.init()
136136
if t.err() != nil {

0 commit comments

Comments
 (0)