Skip to content

Commit d92c354

Browse files
authored
更新 (#20)
1 parent 701296d commit d92c354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcopy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func pcopyInner(dst, src interface{}, opt options) error {
8989
// 如果顶层对象是结构体,肯定会有预热结构
9090
// 但是是其它类型可能没有预热结构, 所以这里要判断一下
9191
if dstValue.Type().Kind() != reflect.Struct && srcValue.Type().Kind() != reflect.Struct {
92-
saveToCache(dstSrcType{
92+
defer saveToCache(dstSrcType{
9393
dst: dstValue.Type(),
9494
src: srcValue.Type(),
9595
},

0 commit comments

Comments
 (0)