1
0
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:
Oliver Hookins 2013-07-05 14:26:09 +10:00 committed by Dave Cheney
parent 2a730f8b16
commit daf81ae78e

View File

@ -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