summaryrefslogtreecommitdiff
path: root/misc.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-27 00:17:49 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:14:51 -0700
commit2824310168b9dbe24c2d47cfb71d4283b1733642 (patch)
treed69110434583a40e5c3e17af3c5559b4918fb22b /misc.go
parenta74b77265f6249385c38ba801822561872418fdf (diff)
.golangci.yml: Turn on 'stylecheck', fix
Diffstat (limited to 'misc.go')
-rw-r--r--misc.go6
1 files changed, 3 insertions, 3 deletions
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`