]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: document %X of string, []byte
authorRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 18:35:45 +0000 (13:35 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 18:35:45 +0000 (13:35 -0500)
suggested by Mark Summerfield

R=r
CC=golang-dev
https://golang.org/cl/4018042

src/pkg/fmt/doc.go

index f3067eac9f1d1e2afb91ae39f102adff8dd56d99..191bf68b13ba1ee17004ca5e43eff93b74a12987 100644 (file)
@@ -36,7 +36,8 @@
        String and slice of bytes:
                %s      the uninterpreted bytes of the string or slice
                %q      a double-quoted string safely escaped with Go syntax
-               %x      base 16 notation with two characters per byte
+               %x      base 16, lower-case, two characters per byte
+               %X      base 16, upper-case, two characters per byte
        Pointer:
                %p      base 16 notation, with leading 0x