summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-30 21:54:38 -0700
commit8467bdaa181257d031a258a05012dc85adbcb233 (patch)
treebc9bf437a34905f0b7249352043aff9e9d80ebe8 /errors.go
parent0b57145421e7e4f165f64e73ee7c5d8102945569 (diff)
parent2e48a42fb9b9e946958810cfbb90ae85bee997e4 (diff)
Merge branch 'lukeshu/quality2'
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/errors.go b/errors.go
index d36fc83..fe48723 100644
--- a/errors.go
+++ b/errors.go
@@ -138,8 +138,9 @@ type EncodeTypeError = json.UnsupportedTypeError
// }
type EncodeValueError = json.UnsupportedValueError
-// An EncodeMethodError wraps an error that is returned from an
-// object's method when encoding that object to JSON.
+// An EncodeMethodError either wraps an error that is returned from an
+// object's method when encoding that object to JSON, or wraps a
+// *ReEncodeSyntaxError for the method's output.
type EncodeMethodError struct {
Type reflect.Type // The Go type that the method is on
SourceFunc string // The method: "EncodeJSON", "MarshalJSON", or "MarshalText"