]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix documention for %#v on uints
authorRob Pike <r@golang.org>
Sun, 16 Oct 2016 18:25:37 +0000 (11:25 -0700)
committerRob Pike <r@golang.org>
Tue, 18 Oct 2016 06:14:31 +0000 (06:14 +0000)
It's the same as %#x not %x.

Just a documentation change; tests already cover it.

Fixes #17322

Change-Id: Ia9db229f781f9042ac5c0bb824e3d7a26fb74ec5
Reviewed-on: https://go-review.googlesource.com/31254
Reviewed-by: Russ Cox <rsc@golang.org>
src/fmt/doc.go

index 8b0c7d10af7af26ecfa4329332d9c7b11ac3e228..f8ae4e72f9870ff7868d8d87135dd731c457e44b 100644 (file)
@@ -51,7 +51,7 @@
        The default format for %v is:
                bool:                    %t
                int, int8 etc.:          %d
-               uint, uint8 etc.:        %d, %x if printed with %#v
+               uint, uint8 etc.:        %d, %#x if printed with %#v
                float32, complex64, etc: %g
                string:                  %s
                chan:                    %p