Skip to content

Commit 7d22a89

Browse files
committed
Fixed typo in docs
1 parent b75d2fe commit 7d22a89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

process.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ func (p *Process) RedirectStdoutTo(out io.Writer) {
8282
p.cmd.Stdout = out
8383
}
8484

85-
// RedirectStderrTo will redirect the process' stdout to the specified
85+
// RedirectStderrTo will redirect the process' stderr to the specified
8686
// writer. Any previous redirection will be overwritten.
87-
func (p *Process) RedirectStderrTo(out io.Writer) {
88-
p.cmd.Stderr = out
87+
func (p *Process) RedirectStderrTo(err io.Writer) {
88+
p.cmd.Stderr = err
8989
}
9090

9191
// StdinPipe returns a pipe that will be connected to the command's standard

0 commit comments

Comments
 (0)