From 7d22a89488e178c9fc1590256b977607a1915d2c Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 5 Aug 2025 10:06:01 +0200 Subject: [PATCH] Fixed typo in docs --- process.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/process.go b/process.go index 1515f4d..a9bc12e 100644 --- a/process.go +++ b/process.go @@ -82,10 +82,10 @@ func (p *Process) RedirectStdoutTo(out io.Writer) { p.cmd.Stdout = out } -// RedirectStderrTo will redirect the process' stdout to the specified +// RedirectStderrTo will redirect the process' stderr to the specified // writer. Any previous redirection will be overwritten. -func (p *Process) RedirectStderrTo(out io.Writer) { - p.cmd.Stderr = out +func (p *Process) RedirectStderrTo(err io.Writer) { + p.cmd.Stderr = err } // StdinPipe returns a pipe that will be connected to the command's standard