diff options
Diffstat (limited to 'misc.go')
-rw-r--r-- | misc.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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` |