]> Cypherpunks repositories - gostls13.git/commitdiff
go/printer: fix a comment
authorRobert Griesemer <gri@golang.org>
Tue, 30 Mar 2010 01:41:55 +0000 (18:41 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 30 Mar 2010 01:41:55 +0000 (18:41 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/826042

src/pkg/go/printer/printer.go

index d9df2e819d390ad59664df4ea9686f48e76e0595..5a12c6edb5e0e331a8fbd720580ea631577e7836 100644 (file)
@@ -964,7 +964,7 @@ type Config struct {
 // Fprint "pretty-prints" an AST node to output and returns the number
 // of bytes written and an error (if any) for a given configuration cfg.
 // The node type must be *ast.File, or assignment-compatible to ast.Expr,
-// ast.Decl, or ast.Stmt.
+// ast.Decl, ast.Spec, or ast.Stmt.
 //
 func (cfg *Config) Fprint(output io.Writer, node interface{}) (int, os.Error) {
        // redirect output through a trimmer to eliminate trailing whitespace