From b02994d092faae574c4b87f516f6d7928f739da2 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Wed, 23 Sep 2015 15:37:00 -0400 Subject: Add more CI checks forcing code cleanliness --- flag.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'flag.go') diff --git a/flag.go b/flag.go index 57d9339..fd91440 100644 --- a/flag.go +++ b/flag.go @@ -315,9 +315,9 @@ func (f *FlagSet) MarkDeprecated(name string, usageMessage string) error { return nil } -// Mark the shorthand of a flag deprecated in your program. It will -// continue to function but will not show up in help or usage messages. Using -// this flag will also print the given usageMessage. +// MarkShorthandDeprecated will mark the shorthand of a flag deprecated in your +// program. It will continue to function but will not show up in help or usage +// messages. Using this flag will also print the given usageMessage. func (f *FlagSet) MarkShorthandDeprecated(name string, usageMessage string) error { flag := f.Lookup(name) if flag == nil { @@ -821,7 +821,7 @@ func NewFlagSet(name string, errorHandling ErrorHandling) *FlagSet { return f } -// SetIntersperesed sets whether to support interspersed option/non-option arguments. +// SetInterspersed sets whether to support interspersed option/non-option arguments. func (f *FlagSet) SetInterspersed(interspersed bool) { f.interspersed = interspersed } -- cgit v1.2.3