Skip to content

Commit

Permalink
Document implicit assumption when repositioning a node
Browse files Browse the repository at this point in the history
  • Loading branch information
rillig committed Jan 7, 2023
1 parent f05d09c commit 82dc9b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instrumenter.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ func deepSubst(
return c

default:
// Assume that all other types can be copied trivially.
c := reflect.New(x.Type()).Elem()
c.Set(post(x))
return c
Expand Down

0 comments on commit 82dc9b8

Please sign in to comment.