aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/bare/unmarshal.go
diff options
context:
space:
mode:
Diffstat (limited to 'forged/internal/bare/unmarshal.go')
-rw-r--r--forged/internal/bare/unmarshal.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/forged/internal/bare/unmarshal.go b/forged/internal/bare/unmarshal.go
index af06529..d55f32c 100644
--- a/forged/internal/bare/unmarshal.go
+++ b/forged/internal/bare/unmarshal.go
@@ -61,7 +61,7 @@ func getDecoder(t reflect.Type) decodeFunc {
var unmarshalableInterface = reflect.TypeOf((*Unmarshalable)(nil)).Elem()
func decoderFunc(t reflect.Type) decodeFunc {
- if reflect.PtrTo(t).Implements(unmarshalableInterface) {
+ if reflect.PointerTo(t).Implements(unmarshalableInterface) {
return func(r *Reader, v reflect.Value) error {
uv := v.Addr().Interface().(Unmarshalable)
return uv.Unmarshal(r)