Skip to content

Commit

Permalink
Fix a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawaha committed Dec 29, 2020
1 parent f9d969b commit 585d863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokenizer/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (t Token) String() string {
return fmt.Sprintf("%d:%q (%d: %d, %d) %v [%d]", t.Index, t.Surface, t.Position, t.Start, t.End, t.Class, t.ID)
}

// Equal returns true if tokens are equal. This function compares values other than the `Index` field.
// Equal returns true if tokens are equal.
func (t Token) Equal(v Token) bool {
return t.ID == v.ID &&
t.Class == v.Class &&
Expand Down

0 comments on commit 585d863

Please sign in to comment.