Skip to content

Commit

Permalink
oversight: update Add() comment to account for func(context.Context)
Browse files Browse the repository at this point in the history
  • Loading branch information
ucirello committed Feb 16, 2024
1 parent 2a7206e commit f746363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ func (t *Tree) init() {
// Add attaches a new child process to a running oversight tree. This call must
// be used on running oversight trees. If the tree is halted, it is going to
// fail with ErrTreeNotRunning. The valid types are ChildProcessSpecification,
// ChildProcess, and *Tree. If the added child process is invalid, it is going
// to fail with ErrInvalidChildProcessType.
// ChildProcess, func(context.Context) and *Tree. If the added child process is
// invalid, it is going to fail with ErrInvalidChildProcessType.
func (t *Tree) Add(spec interface{}) error {
t.init()
if t.err() != nil {
Expand Down

0 comments on commit f746363

Please sign in to comment.