summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-03-29 18:41:55 -0700
committerRobert Griesemer <gri@golang.org>2010-03-29 18:41:55 -0700
commit2a69b3f832ea3d3027585cd3a16014150b7614e8 (patch)
tree1281fce199720e61760d7ebaae44d3b63e1e1f90
parent45b2977537e944dc5de474ec33fe32ce6caecf9d (diff)
downloadgolang-2a69b3f832ea3d3027585cd3a16014150b7614e8.tar.gz
go/printer: fix a comment
R=rsc CC=golang-dev http://codereview.appspot.com/826042
-rw-r--r--src/pkg/go/printer/printer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/go/printer/printer.go b/src/pkg/go/printer/printer.go
index d9df2e819..5a12c6edb 100644
--- a/src/pkg/go/printer/printer.go
+++ b/src/pkg/go/printer/printer.go
@@ -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