From 5ba3b575bbcf3a38011f891ce62ebced1930b140 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Sat, 22 Sep 2012 05:53:45 +1000 Subject: [PATCH] [release-branch.go1] flag: fix indexing doc. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« backport 6ca4825bc867 flag: fix indexing doc. R=golang-dev, r CC=golang-dev https://golang.org/cl/6341046 »»» --- src/pkg/flag/flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0