From 2f687e3b510e3bdc566bfc5fb5a35624bf0ed24d Mon Sep 17 00:00:00 2001 From: Alex Ogier Date: Mon, 7 May 2012 03:59:13 -0400 Subject: Formatted with go fmt --- flag.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flag.go b/flag.go index d6fb32b..6a5dcbf 100644 --- a/flag.go +++ b/flag.go @@ -871,7 +871,6 @@ func (f *FlagSet) VarP(value Value, name, shorthand, usage string) { f.shorthands[c] = flag } - // Var defines a flag with the specified name and usage string. The type and // value of the flag are represented by the first argument, of type Value, which // typically holds a user-defined implementation of Value. For instance, the @@ -956,7 +955,7 @@ func (f *FlagSet) parseArgs(args []string) error { return f.failf("unknown shorthand flag: %q in -%s", c, shorthands) } flag = f.shorthands[c] - if i == len(shorthands) - 1 { + if i == len(shorthands)-1 { break } if shorthands[i+1] == '=' { -- cgit v1.2.3