Skip to content

Commit f4f3f0e

Browse files
committed
fix typo
1 parent 0bded20 commit f4f3f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (e *respError) Error() string {
6262
return e.Message
6363
}
6464

65-
var marsharableRT = reflect.TypeOf(new(marshalable)).Elem()
65+
var marshalableRT = reflect.TypeOf(new(marshalable)).Elem()
6666

6767
func (e *respError) val(errors *Errors) reflect.Value {
6868
if errors != nil {
@@ -74,7 +74,7 @@ func (e *respError) val(errors *Errors) reflect.Value {
7474
} else {
7575
v = reflect.New(t)
7676
}
77-
if len(e.Meta) > 0 && v.Type().Implements(marsharableRT) {
77+
if len(e.Meta) > 0 && v.Type().Implements(marshalableRT) {
7878
_ = v.Interface().(marshalable).UnmarshalJSON(e.Meta)
7979
}
8080
if t.Kind() != reflect.Ptr {

0 commit comments

Comments
 (0)