• Rob Pike's avatar
    fmt: fix floating-point padding once and for all · 4464ae28
    Rob Pike authored
    Rewrite formatFloat to be much simpler and clearer and
    avoid the tricky interaction with padding.
    The issue refers to complex but the problem is just floating-point.
    The new tests added were incorrectly formatted before this fix.
    Fixes #8064.
    
    LGTM=jscrockett01, rsc
    R=rsc, jscrockett01
    CC=golang-codereviews
    https://golang.org/cl/99420048
    4464ae28
Name
Last commit
Last update
..
doc.go Loading commit data...
export_test.go Loading commit data...
fmt_test.go Loading commit data...
format.go Loading commit data...
print.go Loading commit data...
scan.go Loading commit data...
scan_test.go Loading commit data...
stringer_test.go Loading commit data...