]> Cypherpunks repositories - gostls13.git/commit
fmt: fix zero padding for NaN
authorMartin Möhrmann <martisch@uos.de>
Sun, 21 Feb 2016 09:46:59 +0000 (10:46 +0100)
committerRob Pike <r@golang.org>
Sun, 21 Feb 2016 12:04:21 +0000 (12:04 +0000)
commit5dc053b9dec4dc25fac195065ad32462ac28a543
tree5ed8a8697def8ca6e6fa0fbaa7574b7c1380e790
parentaa5b44aeabccd25a320d6ea609c41781bdbf5ce0
fmt: fix zero padding for NaN

Makes zero padding of NaN and infinities consistent
by using spaces instead of zeroes to pad NaN.
Adds more tests for NaN formatting.

Fixes #14421

Change-Id: Ia20f8e878cc81ac72a744ec10d65e84b94e09c6a
Reviewed-on: https://go-review.googlesource.com/19723
Reviewed-by: Rob Pike <r@golang.org>
src/fmt/fmt_test.go
src/fmt/format.go