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 ebb4568..2e10134 100644
--- a/encode.go
+++ b/encode.go
@@ -83,7 +83,7 @@ func (enc *Encoder) Encode(obj any) (err error) {
if enc.isRoot {
enc.w.par.Reset()
}
- escaper := enc.w.BackslashEscape
+ escaper := enc.w.cfg.BackslashEscape
if escaper == nil {
escaper = EscapeDefault
}