diff --git a/README.md b/README.md index b998659..5b92b65 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ nodes := &stmt.StmtList{ file := os.Stdout p := printer.NewPrinter(file, " ") -p.PrintFile(nodes) +p.Print(nodes) ``` It prints to stdout: