summaryrefslogtreecommitdiff
path: root/src/pkg/flag
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-04-10 22:15:55 -0700
committerRui Ueyama <ruiu@google.com>2014-04-10 22:15:55 -0700
commit03bc30772195fca689e502167c1fbc130d797f5a (patch)
tree2cffd85c1cc4289f9f7ad3130698ec9153302c1d /src/pkg/flag
parentcb28a56b57ebb17bdf033a8b214c2ccee5290fed (diff)
downloadgo-03bc30772195fca689e502167c1fbc130d797f5a.tar.gz
flag: remove extra space in error message
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/86420046 Committer: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/pkg/flag')
-rw-r--r--src/pkg/flag/flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go
index d3b454fef..764ed7c8f 100644
--- a/src/pkg/flag/flag.go
+++ b/src/pkg/flag/flag.go
@@ -754,7 +754,7 @@ func (f *FlagSet) parseOne() (bool, error) {
if fv, ok := flag.Value.(boolFlag); ok && fv.IsBoolFlag() { // special case: doesn't need an arg
if has_value {
if err := fv.Set(value); err != nil {
- return false, f.failf("invalid boolean value %q for -%s: %v", value, name, err)
+ return false, f.failf("invalid boolean value %q for -%s: %v", value, name, err)
}
} else {
fv.Set("true")