aboutsummaryrefslogtreecommitdiff
path: root/src/flag
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-08-19 22:33:51 +0200
committerDaniel Martí <mvdan@mvdan.cc>2017-08-26 15:09:09 +0000
commit99da8730b0b95da2c366135c8dc95dcfaf9c3715 (patch)
tree49b26739802e280ecddd0a18f586222adbba5410 /src/flag
parentbad6b6fa9190e9079a6d6958859856a66f0fab87 (diff)
downloadgo-99da8730b0b95da2c366135c8dc95dcfaf9c3715.tar.gz
go-99da8730b0b95da2c366135c8dc95dcfaf9c3715.zip
all: remove some double spaces from comments
Went mainly for the ones that make no sense, such as the ones mid-sentence or after commas. Change-Id: Ie245d2c19cc7428a06295635cf6a9482ade25ff0 Reviewed-on: https://go-review.googlesource.com/57293 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/flag')
-rw-r--r--src/flag/flag.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flag/flag.go b/src/flag/flag.go
index be47f0714d..6bc8e96e20 100644
--- a/src/flag/flag.go
+++ b/src/flag/flag.go
@@ -646,13 +646,13 @@ func (f *FlagSet) UintVar(p *uint, name string, value uint, usage string) {
}
// UintVar defines a uint flag with specified name, default value, and usage string.
-// The argument p points to a uint variable in which to store the value of the flag.
+// The argument p points to a uint variable in which to store the value of the flag.
func UintVar(p *uint, name string, value uint, usage string) {
CommandLine.Var(newUintValue(value, p), name, usage)
}
// Uint defines a uint flag with specified name, default value, and usage string.
-// The return value is the address of a uint variable that stores the value of the flag.
+// The return value is the address of a uint variable that stores the value of the flag.
func (f *FlagSet) Uint(name string, value uint, usage string) *uint {
p := new(uint)
f.UintVar(p, name, value, usage)
@@ -660,7 +660,7 @@ func (f *FlagSet) Uint(name string, value uint, usage string) *uint {
}
// Uint defines a uint flag with specified name, default value, and usage string.
-// The return value is the address of a uint variable that stores the value of the flag.
+// The return value is the address of a uint variable that stores the value of the flag.
func Uint(name string, value uint, usage string) *uint {
return CommandLine.Uint(name, value, usage)
}
@@ -935,7 +935,7 @@ func (f *FlagSet) Parsed() bool {
return f.parsed
}
-// Parse parses the command-line flags from os.Args[1:]. Must be called
+// Parse parses the command-line flags from os.Args[1:]. Must be called
// after all flags are defined and before flags are accessed by the program.
func Parse() {
// Ignore errors; CommandLine is set for ExitOnError.