]> Cypherpunks repositories - gostls13.git/commitdiff
flag: fix build
authorAndrew Gerrand <adg@golang.org>
Sun, 22 May 2011 01:55:02 +0000 (11:55 +1000)
committerAndrew Gerrand <adg@golang.org>
Sun, 22 May 2011 01:55:02 +0000 (11:55 +1000)
R=r
CC=golang-dev
https://golang.org/cl/4543064

src/pkg/flag/flag.go

index ec254fd888d6ae02de427715e0c46c91816243b3..e5d2f94e9b55fb17ac5d332fd7215feee8a83df5 100644 (file)
@@ -567,7 +567,7 @@ func Var(value Value, name string, usage string) {
 // returns the error.
 func (f *FlagSet) failf(format string, a ...interface{}) os.Error {
        err := fmt.Errorf(format, a...)
-       fmt.Println(errc)
+       fmt.Fprintln(os.Stderr, err)
        if f == commandLine {
                Usage()
        } else {