From 2824310168b9dbe24c2d47cfb71d4283b1733642 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 27 Jan 2023 00:17:49 -0700 Subject: .golangci.yml: Turn on 'stylecheck', fix --- misc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc.go') diff --git a/misc.go b/misc.go index c3ce785..fb96b4e 100644 --- a/misc.go +++ b/misc.go @@ -44,7 +44,7 @@ func writeRune(w io.Writer, c rune) (int, error) { // JSON string encoding //////////////////////////////////////////////////////// -// BackSlashEscapeMode identifies one of the three ways that a +// BackslashEscapeMode identifies one of the three ways that a // character may be represented in a JSON string: // // - literally (no backslash escaping) @@ -122,8 +122,8 @@ func EscapeDefault(c rune, wasEscaped BackslashEscapeMode) BackslashEscapeMode { } } -// EscapeDefault is a BackslashEscaper that mimics the default -// behavior of an encoding/json.Encoder that has had +// EscapeDefaultNonHTMLSafe is a BackslashEscaper that mimics the +// default behavior of an encoding/json.Encoder that has had // SetEscapeHTML(false) called on it. // // It is like EscapeJSSafe, but also uses long Unicode `\uXXXX` -- cgit v1.2.3-2-g168b