]> Cypherpunks repositories - gostls13.git/commitdiff
os/exec: Fix documentation references to os.DevNull
authorScott Lawrence <bytbox@gmail.com>
Wed, 9 Nov 2011 21:50:13 +0000 (13:50 -0800)
committerRob Pike <r@golang.org>
Wed, 9 Nov 2011 21:50:13 +0000 (13:50 -0800)
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5372049

src/pkg/os/exec/exec.go

index ebdfd54a73411da70522efaa9d14e54c61900f43..4c95c1b0dac5a750592365eb4311895e378f9e98 100644 (file)
@@ -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.