]> Cypherpunks repositories - gostls13.git/commitdiff
a couple of cosmetic tweaks.
authorRob Pike <r@golang.org>
Mon, 22 Jun 2009 21:26:07 +0000 (14:26 -0700)
committerRob Pike <r@golang.org>
Mon, 22 Jun 2009 21:26:07 +0000 (14:26 -0700)
R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=30599
CL=30602

src/pkg/flag/flag.go

index 63d649a9bd7fe7819db3ec716213e8a339f80582..392f089cd6db4f7b348e64d2f70cad6f8b86d97c 100644 (file)
@@ -233,7 +233,7 @@ func Lookup(name string) *Flag {
        return f
 }
 
-// Set sets the value of tne named flag.  It returns true if the set succeeded; false if
+// Set sets the value of the named flag.  It returns true if the set succeeded; false if
 // there is no such flag defined.
 func Set(name, value string) bool {
        f, ok := flags.formal[name];
@@ -264,7 +264,7 @@ func PrintDefaults() {
 // then calls os.Exit(1).
 func Usage() {
        if len(os.Args) > 0 {
-               fmt.Fprintln(os.Stderr, "Usage of", os.Args[0] + ":");
+               fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0]);
        } else {
                fmt.Fprintln(os.Stderr, "Usage:");
        }