Skip to content

Commit

Permalink
cmdio/sub: Fix documentation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lesiw committed Oct 13, 2024
1 parent 423c174 commit 6aa2a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sub/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ func (c *cdr) Command(
return c.rnr.Commander.Command(ctx, env, append(c.cmd, args...)...)
}

// New instantiates a [cmdio.WithRunner] that runs subcommands.
// New instantiates a [cmdio.Runner] that runs subcommands.
func New(cmd ...string) *cmdio.Runner {
return WithRunner(sys.Runner(), cmd...)
}

// WithRunner instantiates a [cmdio.WithRunner] that runs subcommands using the
// WithRunner instantiates a [cmdio.Runner] that runs subcommands using the
// given runner.
func WithRunner(rnr *cmdio.Runner, cmd ...string) *cmdio.Runner {
return cmdio.NewRunner(
Expand Down

0 comments on commit 6aa2a1e

Please sign in to comment.