From 4f79cef7f2d58f6d08e07a94d5214b2f61f4d3df Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 21 Dec 2012 11:52:21 -0800 Subject: [PATCH] go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6996046 --- src/pkg/go/ast/ast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/go/ast/ast.go b/src/pkg/go/ast/ast.go index e1582c30064..bf533d1d24f 100644 --- a/src/pkg/go/ast/ast.go +++ b/src/pkg/go/ast/ast.go @@ -555,7 +555,7 @@ type ( // A DeclStmt node represents a declaration in a statement list. DeclStmt struct { - Decl Decl + Decl Decl // *GenDecl with CONST, TYPE, or VAR token } // An EmptyStmt node represents an empty statement.