aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-05-18 11:34:19 -0700
committerRobert Griesemer <gri@golang.org>2011-05-18 11:34:19 -0700
commitbda36cf3abbba9ce5163404b00cf55f192f59c21 (patch)
tree26f999f6f45bdddf8d2566779c50fe98716ef891
parent975ba88e0e6c0de73d9c80de67013256be75b49e (diff)
downloadgo-bda36cf3abbba9ce5163404b00cf55f192f59c21.tar.gz
go-bda36cf3abbba9ce5163404b00cf55f192f59c21.zip
fmt: fix minor documentation nits
R=r, rsc CC=golang-dev https://golang.org/cl/4556041
-rw-r--r--src/pkg/fmt/doc.go2
-rw-r--r--src/pkg/fmt/print.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/fmt/doc.go b/src/pkg/fmt/doc.go
index e4d4f18442..56036325c6 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+%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
diff --git a/src/pkg/fmt/print.go b/src/pkg/fmt/print.go
index 10e0fe7c85..8885cebdf8 100644
--- a/src/pkg/fmt/print.go
+++ b/src/pkg/fmt/print.go
@@ -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(c int) bool
}
// Formatter is the interface implemented by values with a custom formatter.