]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: fix doc string for ast.GenDecl
authorRobert Griesemer <gri@golang.org>
Tue, 29 Nov 2016 22:39:06 +0000 (14:39 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 29 Nov 2016 23:11:17 +0000 (23:11 +0000)
Fixes #18109.

Change-Id: I5e3a44422794b7bae7741523fb7cacb6ba147af7
Reviewed-on: https://go-review.googlesource.com/33669
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/ast/ast.go

index b6dc2a6c16fc3957aea3caef8930499019237913..a197b5a5bfcdb9e253a9b906b9370f44acbe2cc5 100644 (file)
@@ -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:
        //