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