Skip to content

Commit

Permalink
fix isNextEOS method in scanner context
Browse files Browse the repository at this point in the history
  • Loading branch information
semihbkgr committed Oct 28, 2024
1 parent 558921a commit 9491444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *Context) isEOS() bool {
}

func (c *Context) isNextEOS() bool {
return len(c.src)-1 <= c.idx+1
return len(c.src) <= c.idx+1
}

func (c *Context) next() bool {
Expand Down

0 comments on commit 9491444

Please sign in to comment.