aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaakallya Biswas <[email protected]>2018-04-12 17:39:13 +0530
committerEric Paris <[email protected]>2018-04-12 08:09:13 -0400
commit583c0c0531f06d5278b7d917446061adc344b5cd (patch)
tree2bca02619b785e0e251b5dcd06f091bbe1eb8a45
parent329ebf1e04800d11a25047832495199d366580f3 (diff)
Typo correction in flag.go (#164)v1.0.1
-rw-r--r--flag.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/flag.go b/flag.go
index e7f6779..5eadc84 100644
--- a/flag.go
+++ b/flag.go
@@ -279,7 +279,7 @@ func (f *FlagSet) VisitAll(fn func(*Flag)) {
}
}
-// HasFlags returns a bool to indicate if the FlagSet has any flags definied.
+// HasFlags returns a bool to indicate if the FlagSet has any flags defined.
func (f *FlagSet) HasFlags() bool {
return len(f.formal) > 0
}