]> Cypherpunks repositories - gostls13.git/commitdiff
flag: fix indexing doc.
authorDavid Symonds <dsymonds@golang.org>
Sun, 24 Jun 2012 19:23:51 +0000 (12:23 -0700)
committerDavid Symonds <dsymonds@golang.org>
Sun, 24 Jun 2012 19:23:51 +0000 (12:23 -0700)
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