]> Cypherpunks repositories - gostls13.git/commit
fmt: integer formatting should not permanently change padding
authorMartin Möhrmann <martisch@uos.de>
Thu, 10 Mar 2016 11:33:33 +0000 (12:33 +0100)
committerRob Pike <r@golang.org>
Sat, 19 Mar 2016 23:49:18 +0000 (23:49 +0000)
commitd246eedcaa5105450ecfe72b626e955147c383b2
treee3204a9ecae4dfc3cc60790871c8c281287de7ab
parent2f4d4206831b722070fecd7efcd0f1b122aa3760
fmt: integer formatting should not permanently change padding

Changes the integer function to restore the original f.zero value
and therefore padding type before returning.

Change-Id: I456449259a3d39bd6d62e110553120c31ec63f23
Reviewed-on: https://go-review.googlesource.com/20512
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/fmt/fmt_test.go
src/fmt/format.go