]> Cypherpunks repositories - gostls13.git/commitdiff
go/token: remove excess parenthesis in NoPos.IsValid() documentation
authorIbrahim AshShohail <ibra.sho@gmail.com>
Tue, 9 May 2017 14:54:26 +0000 (17:54 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 9 May 2017 15:05:14 +0000 (15:05 +0000)
Fixes #20294

Change-Id: I32ac862fe00180210a04103cc94c4d9fef5d1b6c
Reviewed-on: https://go-review.googlesource.com/42992
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/token/position.go

index d4171d80e0c60435a699bb159c2562502bedf5d1..8442b270dbe19bd0be9928f48a4de663a3298a54 100644 (file)
@@ -71,7 +71,7 @@ func (pos Position) String() string {
 type Pos int
 
 // The zero value for Pos is NoPos; there is no file and line information
-// associated with it, and NoPos().IsValid() is false. NoPos is always
+// associated with it, and NoPos.IsValid() is false. NoPos is always
 // smaller than any other Pos value. The corresponding Position value
 // for NoPos is the zero value for Position.
 //