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/bytes.go | |
parent | 82be3054961864dfd5bbeaec2ab961f593203dbf (diff) | |
download | dexon-b55e017e620d8049788eda91424d4944ac934613.tar dexon-b55e017e620d8049788eda91424d4944ac934613.tar.gz dexon-b55e017e620d8049788eda91424d4944ac934613.tar.bz2 dexon-b55e017e620d8049788eda91424d4944ac934613.tar.lz dexon-b55e017e620d8049788eda91424d4944ac934613.tar.xz dexon-b55e017e620d8049788eda91424d4944ac934613.tar.zst dexon-b55e017e620d8049788eda91424d4944ac934613.zip |
Proper delete
Diffstat (limited to 'ethutil/bytes.go')
-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:]...) } } |