summaryrefslogtreecommitdiff
path: root/encode.go
diff options
context:
space:
mode:
Diffstat (limited to 'encode.go')
-rw-r--r--encode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/encode.go b/encode.go
index 377b9b9..8479785 100644
--- a/encode.go
+++ b/encode.go
@@ -302,7 +302,7 @@ func encodeString[T interface{ []byte | string }](w io.Writer, str T) {
encodeWriteByte(w, '"')
for i := 0; i < len(str); {
c, size := decodeRune(str[i:])
- if _, err := writeStringChar(w, c, false, nil); err != nil {
+ if _, err := writeStringChar(w, c, BackslashEscapeNone, nil); err != nil {
panic(encodeError{err})
}
i += size