fix cloneAppend
This commit is contained in:
parent
5091d1688d
commit
c770e74571
|
@ -17,7 +17,7 @@ type prefixStore struct {
|
|||
func cloneAppend(bz []byte, tail []byte) (res []byte) {
|
||||
res = make([]byte, len(bz)+len(tail))
|
||||
copy(res, bz)
|
||||
res = append(res, bz...)
|
||||
copy(res[len(bz):], tail)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue