aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-07-12 16:57:11 -0700
committerRob Pike <r@golang.org>2010-07-12 16:57:11 -0700
commit18d78dd7b1f97e56521c8a37ec9f6996f346e7f5 (patch)
treec39cdd229be339f92fc50da03af383034923566e
parent36560d2b4a916f8461ef9ee5a5a7c193878046a6 (diff)
downloadgo-18d78dd7b1f97e56521c8a37ec9f6996f346e7f5.tar.gz
go-18d78dd7b1f97e56521c8a37ec9f6996f346e7f5.zip
tweak comment for %#X
Fixes #904. R=rsc CC=golang-dev https://golang.org/cl/1803043
-rw-r--r--src/pkg/fmt/print.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/fmt/print.go b/src/pkg/fmt/print.go
index 20bfa9107f..e5066fa915 100644
--- a/src/pkg/fmt/print.go
+++ b/src/pkg/fmt/print.go
@@ -53,7 +53,7 @@
+ always print a sign for numeric values
- pad with spaces on the right rather than the left (left-justify the field)
# alternate format: add leading 0 for octal (%#o), 0x for hex (%#x);
- suppress 0x for %p (%#p);
+ 0X for hex (%#X); suppress 0x for %p (%#p);
print a raw (backquoted) string if possible for %q (%#q)
' ' (space) leave a space for elided sign in numbers (% d);
put spaces between bytes printing strings or slices in hex (% x)