diff options
Diffstat (limited to 'src/pkg/go/printer/printer_test.go')
-rw-r--r-- | src/pkg/go/printer/printer_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/go/printer/printer_test.go b/src/pkg/go/printer/printer_test.go index bc21109f9..42996dc94 100644 --- a/src/pkg/go/printer/printer_test.go +++ b/src/pkg/go/printer/printer_test.go @@ -49,12 +49,13 @@ func check(t *testing.T, source, golden string, exports bool) { // filter exports if necessary if exports { ast.FilterExports(prog); // ignore result + prog.Comments = nil; // don't print comments that are not in AST } // format source var buf bytes.Buffer; w := tabwriter.NewWriter(&buf, tabwidth, padding, tabchar, 0); - Fprint(w, prog, DocComments); + Fprint(w, prog, 0); w.Flush(); res := buf.Data(); |