]> Cypherpunks repositories - gostls13.git/commit
fmt: change evalutation of indexed arg to match docs
authorRob Pike <r@golang.org>
Wed, 29 May 2013 15:29:29 +0000 (11:29 -0400)
committerRob Pike <r@golang.org>
Wed, 29 May 2013 15:29:29 +0000 (11:29 -0400)
commitd84132cce77c7826a9b5d55eb385e71e0ad22ade
tree150367ad785b4ba98f7ef724c7930ba5d922005e
parentca986a2c81f85af0ae009e6b90098c703766c28a
fmt: change evalutation of indexed arg to match docs
The old code put the index before the period in the precision;
it should be after so it's always before the star, as documented.
A little trickier to do in one pass but compensated for by more
tests and catching a couple of other error cases.

R=rsc
CC=golang-dev
https://golang.org/cl/9751044
src/pkg/fmt/doc.go
src/pkg/fmt/fmt_test.go
src/pkg/fmt/print.go