diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-02 23:03:36 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-02 23:03:36 +0800 |
commit | b55e017e620d8049788eda91424d4944ac934613 (patch) | |
tree | 23f6659135f698886d83585d28cff35ccaadef51 /ethutil | |
parent | 82be3054961864dfd5bbeaec2ab961f593203dbf (diff) | |
download | go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.gz go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.zst go-tangerine-b55e017e620d8049788eda91424d4944ac934613.zip |
Proper delete
Diffstat (limited to 'ethutil')
-rw-r--r-- | ethutil/bytes.go | 2 |
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:]...) } } |