diff options
Diffstat (limited to 'src/pkg/fmt/fmt_test.go')
| -rw-r--r-- | src/pkg/fmt/fmt_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/fmt/fmt_test.go b/src/pkg/fmt/fmt_test.go index 38280d61f6..8a83c9b22a 100644 --- a/src/pkg/fmt/fmt_test.go +++ b/src/pkg/fmt/fmt_test.go @@ -73,7 +73,7 @@ type C struct { type F int -func (f F) Format(s State, c int) { +func (f F) Format(s State, c rune) { Fprintf(s, "<%c=F(%d)>", c, int(f)) } @@ -546,7 +546,7 @@ func TestCountMallocs(t *testing.T) { type flagPrinter struct{} -func (*flagPrinter) Format(f State, c int) { +func (*flagPrinter) Format(f State, c rune) { s := "%" for i := 0; i < 128; i++ { if f.Flag(i) { @@ -746,7 +746,7 @@ type PanicF struct { } // Value receiver. -func (p PanicF) Format(f State, c int) { +func (p PanicF) Format(f State, c rune) { panic(p.message) } |
