]> Cypherpunks repositories - gostls13.git/commitdiff
fmt: fix minor documentation nits
authorRobert Griesemer <gri@golang.org>
Wed, 18 May 2011 18:34:19 +0000 (11:34 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 18 May 2011 18:34:19 +0000 (11:34 -0700)
R=r, rsc
CC=golang-dev
https://golang.org/cl/4556041

src/pkg/fmt/doc.go
src/pkg/fmt/print.go

index e4d4f184427fd2ca7c03acf736986508fdb3bdf5..56036325c62ec85123841907dad561193a2b6b55 100644 (file)
@@ -27,7 +27,7 @@
                %o      base 8
                %x      base 16, with lower-case letters for a-f
                %X      base 16, with upper-case letters for A-F
-               %U      Unicode format: U+1234; same as "U+%0.4X"
+               %U      Unicode format: U+1234; same as "U+%04X"
        Floating-point and complex constituents:
                %b      decimalless scientific notation with exponent a power
                        of two, in the manner of strconv.Ftoa32, e.g. -123456p-78
index 10e0fe7c85bbb92bc8a18855c510f89849f44864..8885cebdf8a7255a4db058ae6a22bfd39823aedb 100644 (file)
@@ -41,7 +41,7 @@ type State interface {
        Precision() (prec int, ok bool)
 
        // Flag returns whether the flag c, a character, has been set.
-       Flag(int) bool
+       Flag(int) bool
 }
 
 // Formatter is the interface implemented by values with a custom formatter.