summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-18 18:21:08 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-18 19:32:39 -0700
commita0f2419af917ecc0f91a50b7fb8424615adf9237 (patch)
tree1b433b3cd7fbcad6b61783e78583ddf038aeeccc /internal
parentb24da028a13dc6156367dcf933eb16da4eea5663 (diff)
jsonparse: Fix a mistake in the comments
Diffstat (limited to 'internal')
-rw-r--r--internal/jsonparse/parse.go6
1 files changed, 3 insertions, 3 deletions
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