]> Cypherpunks repositories - gostls13.git/commitdiff
flag: failf documentation nit
authorRobert Hencke <robert.hencke@gmail.com>
Tue, 8 Mar 2011 07:02:07 +0000 (18:02 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 8 Mar 2011 07:02:07 +0000 (18:02 +1100)
"standard output" should have been "standard error".  Sorry about that..

R=adg
CC=golang-dev
https://golang.org/cl/4240088

src/pkg/flag/flag.go

index ea6c82f6193f145bc23ed131f5d646ce50b62d7c..0483425f0b0a2f339c700d826320760fa34a1ed1 100644 (file)
@@ -260,7 +260,7 @@ var Usage = func() {
 
 var panicOnError = false
 
-// failf prints to standard output a formatted error and Usage, and then exits the program.
+// failf prints to standard error a formatted error and Usage, and then exits the program.
 func failf(format string, a ...interface{}) {
        fmt.Fprintf(os.Stderr, format, a...)
        Usage()