]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/json: correct method comment to reflect actual argument
authorAlex S <hlcfan.yan@gmail.com>
Mon, 14 Apr 2025 13:37:21 +0000 (13:37 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 15 Apr 2025 11:38:58 +0000 (04:38 -0700)
Change-Id: I0e9040ee5b84463f0391e8e4ae1b64a036867913
GitHub-Last-Rev: 859c82a254f49fa4b5376c0e8fff6f62f5131f62
GitHub-Pull-Request: golang/go#73123
Reviewed-on: https://go-review.googlesource.com/c/go/+/662015
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
src/encoding/json/scanner.go

index da6ea2ac8f843f54279b509f5bf9786194b426d0..3445dbf2bb11fb10cdaa795790fdc4a34ab5c6aa 100644 (file)
@@ -173,7 +173,7 @@ func (s *scanner) eof() int {
        return scanError
 }
 
-// pushParseState pushes a new parse state p onto the parse stack.
+// pushParseState pushes a new parse state newParseState onto the parse stack.
 // an error state is returned if maxNestingDepth was exceeded, otherwise successState is returned.
 func (s *scanner) pushParseState(c byte, newParseState int, successState int) int {
        s.parseState = append(s.parseState, newParseState)