]> Cypherpunks repositories - gostls13.git/commitdiff
Fix printer_test.go to invoke Fprint as a method of cfg.
authorIan Lance Taylor <iant@golang.org>
Fri, 23 Oct 2009 05:19:22 +0000 (22:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 23 Oct 2009 05:19:22 +0000 (22:19 -0700)
This matches the change to printer.go in revision 3632.

R=gri
http://go/go-review/1015001

src/pkg/go/printer/printer_test.go

index 8f1080a7590f22b2f05c8da469bae8595f361635..1941f86ef940e5893bfc14fe51e85c1fe24d6f59 100644 (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();