aboutsummaryrefslogtreecommitdiff
path: root/slice/slice.go
diff options
context:
space:
mode:
Diffstat (limited to 'slice/slice.go')
-rw-r--r--slice/slice.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/slice/slice.go b/slice/slice.go
index 6d7cf10..05441c8 100644
--- a/slice/slice.go
+++ b/slice/slice.go
@@ -46,6 +46,7 @@ func Patch(source Slice, delta Delta) (target Slice) {
fill += len(ins.Value)
prev = ins.Idx + len(ins.Value)
}
+ copy(target[fill:], temp[tpos:])
return
}