aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-04-23 11:25:27 -0700
committerRob Pike <r@golang.org>2011-04-23 11:25:27 -0700
commitf3113ee9b91712d49400589ff2b2c5f7514ffc85 (patch)
tree7f022fa90d19b1a73c863215bbb6af856615c1f7
parentc0a895fc0a512cea6daa4543fca67a32bae5f1eb (diff)
downloadgo-f3113ee9b91712d49400589ff2b2c5f7514ffc85.tar.gz
go-f3113ee9b91712d49400589ff2b2c5f7514ffc85.zip
fmt: tweak the doc for %U.
Fixes #1727. R=rsc CC=golang-dev https://golang.org/cl/4437069
-rw-r--r--src/pkg/fmt/doc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/fmt/doc.go b/src/pkg/fmt/doc.go
index 77ee62bb1d..e4d4f18442 100644
--- a/src/pkg/fmt/doc.go
+++ b/src/pkg/fmt/doc.go
@@ -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+%x" with 4 digits default
+ %U Unicode format: U+1234; same as "U+%0.4X"
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