1
0
mirror of https://github.com/golang/go synced 2024-11-11 22:50:22 -07:00

os/exec: Fix documentation references to os.DevNull

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5372049
This commit is contained in:
Scott Lawrence 2011-11-09 13:50:13 -08:00 committed by Rob Pike
parent f6615f1b5d
commit 6c10aa19b8

View 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.