diff options
| author | Mitch Connors <[email protected]> | 2019-08-13 14:03:43 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-13 14:03:43 -0700 |
| commit | 6d93a82b1ea1630e0883cafdb6e34ddb6b6dc482 (patch) | |
| tree | e10bb10f2f732ba2fa536bcab2eb88dfcc4d3001 | |
| parent | 7be56aed732047a9d1c87f0e093d4a3713322331 (diff) | |
| parent | b3e76d4c2f82871c97e8703683421e2731a89e4a (diff) | |
Merge pull request #201 from Fedosin/fix_descriptions
Fix descriptions for StringSlice functions
| -rw-r--r-- | string_slice.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/string_slice.go b/string_slice.go index 0cd3ccc..b816ca8 100644 --- a/string_slice.go +++ b/string_slice.go @@ -84,7 +84,7 @@ func (f *FlagSet) GetStringSlice(name string) ([]string, error) { // The argument p points to a []string variable in which to store the value of the flag. // Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. // For example: -// --ss="v1,v2" -ss="v3" +// --ss="v1,v2" --ss="v3" // will result in // []string{"v1", "v2", "v3"} func (f *FlagSet) StringSliceVar(p *[]string, name string, value []string, usage string) { @@ -100,7 +100,7 @@ func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string, value []s // The argument p points to a []string variable in which to store the value of the flag. // Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. // For example: -// --ss="v1,v2" -ss="v3" +// --ss="v1,v2" --ss="v3" // will result in // []string{"v1", "v2", "v3"} func StringSliceVar(p *[]string, name string, value []string, usage string) { @@ -116,7 +116,7 @@ func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage // The return value is the address of a []string variable that stores the value of the flag. // Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. // For example: -// --ss="v1,v2" -ss="v3" +// --ss="v1,v2" --ss="v3" // will result in // []string{"v1", "v2", "v3"} func (f *FlagSet) StringSlice(name string, value []string, usage string) *[]string { @@ -136,7 +136,7 @@ func (f *FlagSet) StringSliceP(name, shorthand string, value []string, usage str // The return value is the address of a []string variable that stores the value of the flag. // Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly. // For example: -// --ss="v1,v2" -ss="v3" +// --ss="v1,v2" --ss="v3" // will result in // []string{"v1", "v2", "v3"} func StringSlice(name string, value []string, usage string) *[]string { |
