summaryrefslogtreecommitdiff
path: root/reencode.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-26 23:36:55 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:14:51 -0700
commit690b0cbb2a220ef4179a0f9f34725328fb8c73f8 (patch)
tree31ecd27ad55cebc5a5e440dff4ddb36834d6aa94 /reencode.go
parentb0b7c75e9e2ee8c80a82a04562a1a7c7d117ae0e (diff)
.golangci.yml: Turn on 'godot', fix
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 {