From b55e017e620d8049788eda91424d4944ac934613 Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 2 Oct 2014 17:03:36 +0200 Subject: Proper delete --- ethutil/bytes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethutil/bytes.go b/ethutil/bytes.go index f151d16ee..bd294f28a 100644 --- a/ethutil/bytes.go +++ b/ethutil/bytes.go @@ -18,7 +18,7 @@ func (self Bytes) String() string { func DeleteFromByteSlice(s [][]byte, hash []byte) [][]byte { for i, h := range s { if bytes.Compare(h, hash) == 0 { - return append(s[:i], s[i+1:]...) + return append(s[:i:i], s[i+1:]...) } } -- cgit v1.2.3