aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethutil/bytes.go2
1 files changed, 1 insertions, 1 deletions
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:]...)
}
}