]> Cypherpunks repositories - gostls13.git/commit
fmt: handle %X like %x for byte type arrays and slices
authorMartin Möhrmann <martisch@uos.de>
Thu, 10 Mar 2016 16:36:49 +0000 (17:36 +0100)
committerRob Pike <r@golang.org>
Tue, 15 Mar 2016 03:26:30 +0000 (03:26 +0000)
commitc45c51534845121da77ed5e0fbe4e0ecfff8c4bf
tree0360d3fa96fa32002e03cc0ba29b95388ac7d0d6
parent80f2aff9efc494e561552eed11b4fcea44770f83
fmt: handle %X like %x for byte type arrays and slices

Treat the verb %X in the same special way as %q, %s and %x
are for arrays and slices with byte type elements.

Modify input for tests so the result of %x and %X is distinct.

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