From a0f2419af917ecc0f91a50b7fb8424615adf9237 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 18 Feb 2023 18:21:08 -0700 Subject: jsonparse: Fix a mistake in the comments --- internal/jsonparse/parse.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal') diff --git a/internal/jsonparse/parse.go b/internal/jsonparse/parse.go index 7afd6a1..d867cbc 100644 --- a/internal/jsonparse/parse.go +++ b/internal/jsonparse/parse.go @@ -386,7 +386,7 @@ func (par *Parser) Reset() { } } -// PushReadBarrier causes the parser to expect EOF once the end of the +// PushReadBarrier causes the parser to emit EOF once the end of the // element that is started by the current top-of-stack is reached, // until this is un-done with PopBarrier. It essentially turns the // parser in to a sub-parser. @@ -429,8 +429,8 @@ func (par *Parser) PushReadBarrier() { par.stack = []RuneType{curState} } -// PushWriteBarrier causes the parser to expect EOF once the end of -// the about-to-start element is reached, until this is un-done with +// PushWriteBarrier causes the parser to emit EOF once the end of the +// about-to-start element is reached, until this is un-done with // PopBarrier. It essentially turns the parser in to a sub-parser. // // PushWriteBarrier may only be called at the places where an element -- cgit v1.2.3-2-g168b