Skip to content

Commit b26edbe

Browse files
authored
Merge pull request #42 from arduino/fix_typo
Fixed typo in docs
2 parents 6cc86e6 + 7d22a89 commit b26edbe

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)