From c123c6c3f628b64c227d2de6d45e780716682e27 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Sun, 24 Jun 2012 12:23:51 -0700 Subject: [PATCH] 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.48.1