aboutsummaryrefslogtreecommitdiff
path: root/string.go
diff options
context:
space:
mode:
authorEric Paris <[email protected]>2015-08-15 14:22:16 -0500
committerEric Paris <[email protected]>2015-08-15 14:22:16 -0500
commitccad0e1b8d442b5291ebbaa7d4f3b345a9dbfe65 (patch)
tree98409d6f5f56049df54b18a9fc577cf38dff8bae /string.go
parentda10e08318b7b4c0105c4df757cb1f997f439f4a (diff)
parent0692da7b4fa7568c62b505a313ee44a5256ee7f4 (diff)
Merge pull request #46 from eparis/goreportcard
Fix up minor things found by goreportcard.com
Diffstat (limited to 'string.go')
-rw-r--r--string.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/string.go b/string.go
index f89ea8b..e296136 100644
--- a/string.go
+++ b/string.go
@@ -39,7 +39,7 @@ func (f *FlagSet) StringVar(p *string, name string, value string, usage string)
f.VarP(newStringValue(value, p), name, "", usage)
}
-// Like StringVar, but accepts a shorthand letter that can be used after a single dash.
+// StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash.
func (f *FlagSet) StringVarP(p *string, name, shorthand string, value string, usage string) {
f.VarP(newStringValue(value, p), name, shorthand, usage)
}
@@ -50,7 +50,7 @@ func StringVar(p *string, name string, value string, usage string) {
CommandLine.VarP(newStringValue(value, p), name, "", usage)
}
-// Like StringVar, but accepts a shorthand letter that can be used after a single dash.
+// StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash.
func StringVarP(p *string, name, shorthand string, value string, usage string) {
CommandLine.VarP(newStringValue(value, p), name, shorthand, usage)
}
@@ -63,7 +63,7 @@ func (f *FlagSet) String(name string, value string, usage string) *string {
return p
}
-// Like String, but accepts a shorthand letter that can be used after a single dash.
+// StringP is like String, but accepts a shorthand letter that can be used after a single dash.
func (f *FlagSet) StringP(name, shorthand string, value string, usage string) *string {
p := new(string)
f.StringVarP(p, name, shorthand, value, usage)
@@ -76,7 +76,7 @@ func String(name string, value string, usage string) *string {
return CommandLine.StringP(name, "", value, usage)
}
-// Like String, but accepts a shorthand letter that can be used after a single dash.
+// StringP is like String, but accepts a shorthand letter that can be used after a single dash.
func StringP(name, shorthand string, value string, usage string) *string {
return CommandLine.StringP(name, shorthand, value, usage)
}