1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:17:58 -07:00

go/printer: fix a comment

R=rsc
CC=golang-dev
https://golang.org/cl/826042
This commit is contained in:
Robert Griesemer 2010-03-29 18:41:55 -07:00
parent 671919d19a
commit bc32dd9ec4

View File

@ -964,7 +964,7 @@ type Config struct {
// Fprint "pretty-prints" an AST node to output and returns the number // 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. // 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, // 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) { func (cfg *Config) Fprint(output io.Writer, node interface{}) (int, os.Error) {
// redirect output through a trimmer to eliminate trailing whitespace // redirect output through a trimmer to eliminate trailing whitespace