Skip to content

Commit 6f99cdb

Browse files
committed
encoding/json: correct method comment to reflect actual argument
1 parent 4c1b8ca commit 6f99cdb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/encoding/json/scanner.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ func (s *scanner) eof() int {
173173
return scanError
174174
}
175175

176-
// pushParseState pushes a new parse state p onto the parse stack.
177-
// an error state is returned if maxNestingDepth was exceeded, otherwise successState is returned.
176+
// pushParseState pushes a new parse state newParseState onto the parse stack.
177+
// an error state is returned if maxNestingDepth was exceeded, otherwise
178+
// successState is returned.
178179
func (s *scanner) pushParseState(c byte, newParseState int, successState int) int {
179180
s.parseState = append(s.parseState, newParseState)
180181
if len(s.parseState) <= maxNestingDepth {

0 commit comments

Comments
 (0)