mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/dist: correct run's comment
Change-Id: I45b026f4b4bf23b222a81669280cbe245048022b Reviewed-on: https://go-review.googlesource.com/18212 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
ae8e55860b
commit
7e24e89944
1 changed files with 2 additions and 2 deletions
4
src/cmd/dist/util.go
vendored
4
src/cmd/dist/util.go
vendored
|
|
@ -73,8 +73,8 @@ const (
|
|||
var outputLock sync.Mutex
|
||||
|
||||
// run runs the command line cmd in dir.
|
||||
// If mode has ShowOutput set, run collects cmd's output and returns it as a string;
|
||||
// otherwise, run prints cmd's output to standard output after the command finishes.
|
||||
// If mode has ShowOutput set and Background unset, run passes cmd's output to
|
||||
// stdout/stderr directly. Otherwise, run returns cmd's output as a string.
|
||||
// If mode has CheckExit set and the command fails, run calls fatal.
|
||||
// If mode has Background set, this command is being run as a
|
||||
// Background job. Only bgrun should use the Background mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue