1
0
mirror of https://github.com/golang/go synced 2024-11-15 11:20:30 -07:00

[release-branch.go1] flag: fix indexing doc.

««« backport 6ca4825bc867
flag: fix indexing doc.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6341046

»»»
This commit is contained in:
David Symonds 2012-09-22 05:53:45 +10:00
parent a1bfd04394
commit 5ba3b575bb

View File

@ -33,7 +33,7 @@
After parsing, the arguments after the flag are available as the After parsing, the arguments after the flag are available as the
slice flag.Args() or individually as flag.Arg(i). slice flag.Args() or individually as flag.Arg(i).
The arguments are indexed from 0 up to flag.NArg(). The arguments are indexed from 0 through flag.NArg()-1.
Command line flag syntax: Command line flag syntax:
-flag -flag