Skip to content

Commit 5410296

Browse files
ibrashobradfitz
authored andcommitted
go/token: remove excess parenthesis in NoPos.IsValid() documentation
Fixes #20294 Change-Id: I32ac862fe00180210a04103cc94c4d9fef5d1b6c Reviewed-on: https://go-review.googlesource.com/42992 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent d659682 commit 5410296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/go/token/position.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func (pos Position) String() string {
7171
type Pos int
7272

7373
// The zero value for Pos is NoPos; there is no file and line information
74-
// associated with it, and NoPos().IsValid() is false. NoPos is always
74+
// associated with it, and NoPos.IsValid() is false. NoPos is always
7575
// smaller than any other Pos value. The corresponding Position value
7676
// for NoPos is the zero value for Position.
7777
//

0 commit comments

Comments
 (0)