]> Cypherpunks repositories - gostls13.git/commitdiff
flags.Usage() calls fmt.Fprintf() with incorrect args
authorBrendan O'Dea <bod@golang.org>
Mon, 27 Apr 2009 01:36:17 +0000 (18:36 -0700)
committerBrendan O'Dea <bod@golang.org>
Mon, 27 Apr 2009 01:36:17 +0000 (18:36 -0700)
R=r
APPROVED=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27777
CL=27876

src/lib/flag.go

index a63bdf6b0589b9fa2da4f1c60a05a8ed336a8e85..e66238f6dd24573071b03e81bc16789ac30bef3f 100644 (file)
@@ -264,9 +264,9 @@ func PrintDefaults() {
 // then calls sys.Exit(1).
 func Usage() {
        if len(sys.Args) > 0 {
-               fmt.Fprintf(os.Stderr, "Usage of ", sys.Args[0], ": \n");
+               fmt.Fprintln(os.Stderr, "Usage of", sys.Args[0] + ":");
        } else {
-               fmt.Fprintf(os.Stderr, "Usage: \n");
+               fmt.Fprintln(os.Stderr, "Usage:");
        }
        PrintDefaults();
        sys.Exit(1);