mirror of
https://github.com/golang/go
synced 2024-11-19 22:04:44 -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:
parent
8f52a82169
commit
95499a27ea
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user