Skip to content

doc: explain NoPos.IsValid() with parentheses. #20294

Closed
@iporsut

Description

@iporsut

I found in "go/token" explain NoPos call method IsValid() with parentheses. I think it should no parentheses NoPos.IsValid().

"go/token/position.go:74"

// associated with it, and NoPos().IsValid() is false. NoPos is always

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions