1
0
mirror of https://github.com/golang/go synced 2024-10-02 20:31:21 -06:00

flag: failf documentation nit

"standard output" should have been "standard error".  Sorry about that..

R=adg
CC=golang-dev
https://golang.org/cl/4240088
This commit is contained in:
Robert Hencke 2011-03-08 18:02:07 +11:00 committed by Andrew Gerrand
parent d2e011d518
commit c55fb521cc

View 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()