From 82dc9b8bfb6dd0361f1c8655e17ab134bb30615b Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 7 Jan 2023 15:53:16 +0100 Subject: [PATCH] Document implicit assumption when repositioning a node --- instrumenter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumenter.go b/instrumenter.go index a52267b..1a7229a 100644 --- a/instrumenter.go +++ b/instrumenter.go @@ -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