mirror of
https://github.com/golang/go
synced 2024-11-18 10:14:45 -07:00
encoding/json: Correct description of stateNeg function.
R=golang-dev, dave, adg CC=golang-dev https://golang.org/cl/10862045
This commit is contained in:
parent
2a730f8b16
commit
daf81ae78e
@ -390,7 +390,7 @@ func stateInStringEscU123(s *scanner, c int) int {
|
||||
return s.error(c, "in \\u hexadecimal character escape")
|
||||
}
|
||||
|
||||
// stateInStringEscU123 is the state after reading `-` during a number.
|
||||
// stateNeg is the state after reading `-` during a number.
|
||||
func stateNeg(s *scanner, c int) int {
|
||||
if c == '0' {
|
||||
s.step = state0
|
||||
|
Loading…
Reference in New Issue
Block a user