From: Shenghou Ma Date: Mon, 19 Jan 2015 01:05:44 +0000 (-0500) Subject: fmt: reword the document for [n]. X-Git-Tag: go1.5beta1~2315 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e12b1ddc9908602c7307d27a40c5b11529db6200;p=gostls13.git fmt: reword the document for [n]. Fixes #9632. Change-Id: Ic4d7cad8ff62023c1beecd2d62e48eb9258f5306 Reviewed-on: https://go-review.googlesource.com/3013 Reviewed-by: Rob Pike --- diff --git a/src/fmt/doc.go b/src/fmt/doc.go index bb832ea645..9dc2a0d75d 100644 --- a/src/fmt/doc.go +++ b/src/fmt/doc.go @@ -178,8 +178,8 @@ However, the notation [n] immediately before the verb indicates that the nth one-indexed argument is to be formatted instead. The same notation before a '*' for a width or precision selects the argument index holding - the value. After processing a bracketed expression [n], arguments n+1, - n+2, etc. will be processed unless otherwise directed. + the value. After processing a bracketed expression [n], subsequent verbs + will use arguments n+1, n+2, etc. unless otherwise directed. For example, fmt.Sprintf("%[2]d %[1]d\n", 11, 22)