]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: improve doc for FuncDecl's Type field.
authorDavid Symonds <dsymonds@golang.org>
Tue, 2 Jul 2013 22:16:08 +0000 (08:16 +1000)
committerDavid Symonds <dsymonds@golang.org>
Tue, 2 Jul 2013 22:16:08 +0000 (08:16 +1000)
R=gri, r
CC=golang-dev
https://golang.org/cl/10679047

src/pkg/go/ast/ast.go

index c68f94d17b9275347b1e7924102f6e5790c757ab..efa0f0493621f20bbe537966cbee690fe04200fc 100644 (file)
@@ -920,7 +920,7 @@ type (
                Doc  *CommentGroup // associated documentation; or nil
                Recv *FieldList    // receiver (methods); or nil (functions)
                Name *Ident        // function/method name
-               Type *FuncType     // position of Func keyword, parameters and results
+               Type *FuncType     // function signature: parameters, results, and position of "func" keyword
                Body *BlockStmt    // function body; or nil (forward declaration)
        }
 )