summaryrefslogtreecommitdiff
path: root/reencode.go
diff options
context:
space:
mode:
Diffstat (limited to 'reencode.go')
-rw-r--r--reencode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reencode.go b/reencode.go
index 1bcfc74..6b9c336 100644
--- a/reencode.go
+++ b/reencode.go
@@ -290,8 +290,8 @@ func (enc *ReEncoder) handleRuneNoSpeculation(c rune, t internal.RuneType) error
return enc.handleRuneMain(c, t)
}
-// handle buffered things that need to happen before the new rune
-// itself is handled.
+// handleRunePre handles buffered things that need to happen before
+// the new rune itself is handled.
func (enc *ReEncoder) handleRunePre(c rune, t internal.RuneType) (error, bool) {
// emit newlines between top-level values
if enc.handleRuneState.lastNonSpace == internal.RuneTypeEOF {
@@ -384,7 +384,7 @@ func (enc *ReEncoder) handleRunePre(c rune, t internal.RuneType) (error, bool) {
return nil, true
}
-// handle the new rune itself, not buffered things
+// handleRuneMain handles the new rune itself, not buffered things.
func (enc *ReEncoder) handleRuneMain(c rune, t internal.RuneType) error {
defer func() {
if t != internal.RuneTypeSpace {