Skip to content

Commit

Permalink
parseNumber: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
davecheney committed Nov 2, 2023
1 parent f7701f8 commit 8665772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func (s *Scanner) parseNumber(c byte) int {
// handle the case that the first character is a hyphen
if c == '-' {
pos++
w = s.br.window()[1:] // TODO - can we subslice w here?
w = w[1:]
}

for {
Expand Down

0 comments on commit 8665772

Please sign in to comment.