summaryrefslogtreecommitdiff
path: root/reencode.go
diff options
context:
space:
mode:
Diffstat (limited to 'reencode.go')
-rw-r--r--reencode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reencode.go b/reencode.go
index 856de99..6bd1e48 100644
--- a/reencode.go
+++ b/reencode.go
@@ -22,7 +22,7 @@ type ReEncoder struct {
Indent string
// String to put before indents, for testing-compat with
// encoding/json only.
- prefix string
+ Prefix string
// Returns whether a given character in a string should be
// backslash-escaped. The bool argument is whether it was
// \u-escaped in the input. This does not affect characters
@@ -275,8 +275,8 @@ func (enc *ReEncoder) emitNlIndent() error {
if err := enc.emitByte('\n'); err != nil {
return err
}
- if enc.prefix != "" {
- if err := enc.emit(io.WriteString(enc.Out, enc.prefix)); err != nil {
+ if enc.Prefix != "" {
+ if err := enc.emit(io.WriteString(enc.Out, enc.Prefix)); err != nil {
return err
}
}