summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
Diffstat (limited to 'compat')
-rw-r--r--compat/json/compat.go6
-rw-r--r--compat/json/compat_test.go1
2 files changed, 4 insertions, 3 deletions
diff --git a/compat/json/compat.go b/compat/json/compat.go
index f8b23e3..fb4fc90 100644
--- a/compat/json/compat.go
+++ b/compat/json/compat.go
@@ -22,14 +22,14 @@ type (
Unmarshaler = json.Unmarshaler
// low-level decode errors
- //SyntaxError = json.SyntaxError // duplicated to access a private field
+ // SyntaxError = json.SyntaxError // duplicated to access a private field
UnmarshalTypeError = json.UnmarshalTypeError
// high-level decode errors
InvalidUnmarshalError = json.InvalidUnmarshalError
// marshal errors
- //MarshalerError = json.MarshalerError // duplicated to access a private field
+ // MarshalerError = json.MarshalerError // duplicated to access a private field
UnsupportedTypeError = json.UnsupportedTypeError
UnsupportedValueError = json.UnsupportedValueError
)
@@ -241,4 +241,4 @@ func (dec *Decoder) Buffered() io.Reader {
return bytes.NewReader(dat)
}
-//func (dec *Decoder) Token() (Token, error)
+// func (dec *Decoder) Token() (Token, error)
diff --git a/compat/json/compat_test.go b/compat/json/compat_test.go
index 23ee977..dac5e54 100644
--- a/compat/json/compat_test.go
+++ b/compat/json/compat_test.go
@@ -54,6 +54,7 @@ type encodeState struct {
func (es *encodeState) string(str string, _ bool) {
internal.EncodeStringFromString(&es.Buffer, str)
}
+
func (es *encodeState) stringBytes(str []byte, _ bool) {
internal.EncodeStringFromBytes(&es.Buffer, str)
}