]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] flag: fix indexing doc.
authorDavid Symonds <dsymonds@golang.org>
Fri, 21 Sep 2012 19:53:45 +0000 (05:53 +1000)
committerDavid Symonds <dsymonds@golang.org>
Fri, 21 Sep 2012 19:53:45 +0000 (05:53 +1000)
««« backport 6ca4825bc867
flag: fix indexing doc.

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

»»»

src/pkg/flag/flag.go

index 5444ad141c5905aedc97c824e2ff6d37ad7e1280..3116dafb5a0009631c93a086b4bbc9862b7d674a 100644 (file)
@@ -33,7 +33,7 @@
 
        After parsing, the arguments after the flag are available as the
        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:
                -flag