From 690b0cbb2a220ef4179a0f9f34725328fb8c73f8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 26 Jan 2023 23:36:55 -0700 Subject: .golangci.yml: Turn on 'godot', fix --- reencode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'reencode.go') 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 { -- cgit v1.2.3-2-g168b