]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: correct run's comment
authorTamir Duberstein <tamird@gmail.com>
Wed, 30 Dec 2015 16:10:47 +0000 (11:10 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 6 Jan 2016 02:02:07 +0000 (02:02 +0000)
Change-Id: I45b026f4b4bf23b222a81669280cbe245048022b
Reviewed-on: https://go-review.googlesource.com/18212
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/dist/util.go

index c29e7812263fb1efa6e12f1db1343f8ed21acd62..d52c7113f6465bb96dca809129f6732362e2fa83 100644 (file)
@@ -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,