From 774b00069f8f55b750a6e7f7b99d88ec76801d91 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 6 Apr 2025 11:36:51 +0800 Subject: Replace PtrTo with PointerTo --- forged/internal/bare/unmarshal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forged/internal/bare/unmarshal.go') 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) -- cgit v1.2.3