From: David Symonds Date: Fri, 21 Sep 2012 19:53:45 +0000 (+1000) Subject: [release-branch.go1] flag: fix indexing doc. X-Git-Tag: go1.0.3~198 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5ba3b575bbcf3a38011f891ce62ebced1930b140;p=gostls13.git [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 »»» --- diff --git a/src/pkg/flag/flag.go b/src/pkg/flag/flag.go index 5444ad141c..3116dafb5a 100644 --- a/src/pkg/flag/flag.go +++ b/src/pkg/flag/flag.go @@ -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