Skip to content

Commit

Permalink
更新 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong authored Dec 16, 2023
1 parent 701296d commit d92c354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func pcopyInner(dst, src interface{}, opt options) error {
// 如果顶层对象是结构体,肯定会有预热结构
// 但是是其它类型可能没有预热结构, 所以这里要判断一下
if dstValue.Type().Kind() != reflect.Struct && srcValue.Type().Kind() != reflect.Struct {
saveToCache(dstSrcType{
defer saveToCache(dstSrcType{
dst: dstValue.Type(),
src: srcValue.Type(),
},
Expand Down

0 comments on commit d92c354

Please sign in to comment.