]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: reword the document for [n].
authorShenghou Ma <minux@golang.org>
Mon, 19 Jan 2015 01:05:44 +0000 (20:05 -0500)
committerMinux Ma <minux@golang.org>
Mon, 19 Jan 2015 06:35:21 +0000 (06:35 +0000)
Fixes #9632.

Change-Id: Ic4d7cad8ff62023c1beecd2d62e48eb9258f5306
Reviewed-on: https://go-review.googlesource.com/3013
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/doc.go

index bb832ea645afcaf23de6fa1be1c35ea27a9019fa..9dc2a0d75d807364e7d74e810134befd6e2f21e4 100644 (file)
        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)