Skip to content

Commit

Permalink
fmt: reword the document for [n].
Browse files Browse the repository at this point in the history
Fixes #9632.

Change-Id: Ic4d7cad8ff62023c1beecd2d62e48eb9258f5306
Reviewed-on: https://go-review.googlesource.com/3013
Reviewed-by: Rob Pike <r@golang.org>
  • Loading branch information
minux committed Jan 19, 2015
1 parent 3b5be45 commit e12b1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmt/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e12b1dd

Please sign in to comment.