Skip to content

Commit 6eb11b2

Browse files
committed
go/ast: fix doc string for ast.GenDecl
Fixes #18109. Change-Id: I5e3a44422794b7bae7741523fb7cacb6ba147af7 Reviewed-on: https://go-review.googlesource.com/33669 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent 4bd9570 commit 6eb11b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/ast/ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ type (
902902

903903
// A GenDecl node (generic declaration node) represents an import,
904904
// constant, type or variable declaration. A valid Lparen position
905-
// (Lparen.Line > 0) indicates a parenthesized declaration.
905+
// (Lparen.IsValid()) indicates a parenthesized declaration.
906906
//
907907
// Relationship between Tok value and Specs element type:
908908
//

0 commit comments

Comments
 (0)