From: David Symonds Date: Sun, 24 Jun 2012 19:23:51 +0000 (-0700) Subject: flag: fix indexing doc. X-Git-Tag: go1.1rc2~2902 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c123c6c3f628b64c227d2de6d45e780716682e27;p=gostls13.git 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