diff options
author | hellozee <hellozee@disroot.org> | 2018-06-07 05:14:23 +0000 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2018-06-07 07:00:46 +0000 |
commit | e5f0c1f6c9dc382bdc6a0ec1a0d5e1fc6f833485 (patch) | |
tree | db1702b540b787ead23ea20679d2fe663683829d /src/flag | |
parent | 33f1768381f0070d5ea8062a36f366d8a3142d96 (diff) | |
download | go-e5f0c1f6c9dc382bdc6a0ec1a0d5e1fc6f833485.tar.gz go-e5f0c1f6c9dc382bdc6a0ec1a0d5e1fc6f833485.zip |
flag: removed the colon after "Usage" in the documentation
Removing the colon will make the "Usage" and "Command line flag syntax" in the docs, a header when interpreted by godoc.
Fixes #25749
Change-Id: Ifc5572e171db1aaef9775b1d6c86091a8f2528fd
GitHub-Last-Rev: 1b579734308cbcb96f17d945b9c7af70e259cb5b
GitHub-Pull-Request: golang/go#25750
Reviewed-on: https://go-review.googlesource.com/116555
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/flag')
-rw-r--r-- | src/flag/flag.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flag/flag.go b/src/flag/flag.go index f613144a7e..188adb285f 100644 --- a/src/flag/flag.go +++ b/src/flag/flag.go @@ -5,7 +5,7 @@ /* Package flag implements command-line flag parsing. - Usage: + Usage Define flags using flag.String(), Bool(), Int(), etc. @@ -35,7 +35,7 @@ slice flag.Args() or individually as flag.Arg(i). The arguments are indexed from 0 through flag.NArg()-1. - Command line flag syntax: + Command line flag syntax -flag -flag=x -flag x // non-boolean flags only |