aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-11-29 14:39:06 -0800
committerRobert Griesemer <gri@golang.org>2016-11-29 23:11:17 +0000
commit6eb11b2c398b19ab2201487139e569eecebf8626 (patch)
treeceb65789da10c0627239d44032573d5336babed5
parent4bd95702dd1e81f383ee67c14945620d30247908 (diff)
downloadgo-6eb11b2c398b19ab2201487139e569eecebf8626.tar.gz
go-6eb11b2c398b19ab2201487139e569eecebf8626.zip
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>
-rw-r--r--src/go/ast/ast.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/ast/ast.go b/src/go/ast/ast.go
index b6dc2a6c16..a197b5a5bf 100644
--- a/src/go/ast/ast.go
+++ b/src/go/ast/ast.go
@@ -902,7 +902,7 @@ type (
// A GenDecl node (generic declaration node) represents an import,
// constant, type or variable declaration. A valid Lparen position
- // (Lparen.Line > 0) indicates a parenthesized declaration.
+ // (Lparen.IsValid()) indicates a parenthesized declaration.
//
// Relationship between Tok value and Specs element type:
//