From: Alex S Date: Mon, 14 Apr 2025 13:37:21 +0000 (+0000) Subject: encoding/json: correct method comment to reflect actual argument X-Git-Tag: go1.25rc1~477 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=57508059e80123499d2efbaeeed630f0263380e1;p=gostls13.git encoding/json: correct method comment to reflect actual argument 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 Reviewed-by: Dmitri Shuralyov Reviewed-by: Michael Pratt LUCI-TryBot-Result: Go LUCI Reviewed-by: Sean Liao --- diff --git a/src/encoding/json/scanner.go b/src/encoding/json/scanner.go index da6ea2ac8f..3445dbf2bb 100644 --- a/src/encoding/json/scanner.go +++ b/src/encoding/json/scanner.go @@ -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)