]> Cypherpunks repositories - gostls13.git/commit
Fix printing of named floating point types.
authorIan Lance Taylor <iant@golang.org>
Tue, 16 Feb 2010 06:42:49 +0000 (22:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 16 Feb 2010 06:42:49 +0000 (22:42 -0800)
commit115066fd14d0257112beab8cc09ca5d7f214ab6c
tree61fe6cb879b53128507f9aa3c1cb50b3e70a1c6a
parentfba50ee5ede4866a621b90355fb466e7634c3325
Fix printing of named floating point types.

Try to avoid infinite recursion if String fails due to
printing a bad type.

Add test for String method with named basic types.

R=r
CC=golang-dev
https://golang.org/cl/207102
src/pkg/fmt/print.go
src/pkg/fmt/stringer_test.go [new file with mode: 0644]