]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: Correct description of stateNeg function.
authorOliver Hookins <ohookins@gmail.com>
Fri, 5 Jul 2013 04:26:09 +0000 (14:26 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 5 Jul 2013 04:26:09 +0000 (14:26 +1000)
R=golang-dev, dave, adg
CC=golang-dev
https://golang.org/cl/10862045

src/pkg/encoding/json/scanner.go

index 054b6b3d564e1dbc7d96ee19276fd150f69c83a9..a4609c89505f0dbb25d782f08cb3f6df47ac0ee7 100644 (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