From: Scott Lawrence Date: Wed, 9 Nov 2011 21:50:13 +0000 (-0800) Subject: os/exec: Fix documentation references to os.DevNull X-Git-Tag: weekly.2011-11-18~127 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6c10aa19b88d3a3c602c725821f73b02d0cd2d58;p=gostls13.git os/exec: Fix documentation references to os.DevNull R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5372049 --- diff --git a/src/pkg/os/exec/exec.go b/src/pkg/os/exec/exec.go index ebdfd54a73..4c95c1b0da 100644 --- a/src/pkg/os/exec/exec.go +++ b/src/pkg/os/exec/exec.go @@ -50,14 +50,14 @@ type Cmd struct { // calling process's current directory. Dir string - // Stdin specifies the process's standard input. - // If Stdin is nil, the process reads from DevNull. + // Stdin specifies the process's standard input. If Stdin is + // nil, the process reads from the null device (os.DevNull). Stdin io.Reader // Stdout and Stderr specify the process's standard output and error. // - // If either is nil, Run connects the - // corresponding file descriptor to /dev/null. + // If either is nil, Run connects the corresponding file descriptor + // to the null device (os.DevNull). // // If Stdout and Stderr are are the same writer, at most one // goroutine at a time will call Write.