1
0
mirror of https://github.com/golang/go synced 2024-11-23 07:30:05 -07:00

go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6996046
This commit is contained in:
Robert Griesemer 2012-12-21 11:52:21 -08:00
parent 11a40cb34d
commit 4f79cef7f2

View File

@ -555,7 +555,7 @@ type (
// A DeclStmt node represents a declaration in a statement list. // A DeclStmt node represents a declaration in a statement list.
DeclStmt struct { DeclStmt struct {
Decl Decl Decl Decl // *GenDecl with CONST, TYPE, or VAR token
} }
// An EmptyStmt node represents an empty statement. // An EmptyStmt node represents an empty statement.