From 68b881791f4fdabad0feeb5d49f40f4b8f9fe9d9 Mon Sep 17 00:00:00 2001 From: Brendan O'Dea Date: Sun, 26 Apr 2009 18:36:17 -0700 Subject: [PATCH] flags.Usage() calls fmt.Fprintf() with incorrect args R=r APPROVED=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27777 CL=27876 --- src/lib/flag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/flag.go b/src/lib/flag.go index a63bdf6b058..e66238f6dd2 100644 --- a/src/lib/flag.go +++ b/src/lib/flag.go @@ -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);