1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:24:41 -07:00

Fix printer_test.go to invoke Fprint as a method of cfg.

This matches the change to printer.go in revision 3632.

R=gri
http://go/go-review/1015001
This commit is contained in:
Ian Lance Taylor 2009-10-22 22:19:22 -07:00
parent 8f52a82169
commit 95499a27ea

View File

@ -62,7 +62,7 @@ func check(t *testing.T, source, golden string, mode checkMode) {
// format source
var buf bytes.Buffer;
if _, err := Fprint(&buf, prog, &cfg); err != nil {
if _, err := cfg.Fprint(&buf, prog); err != nil {
t.Error(err);
}
res := buf.Bytes();