aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-02 23:03:36 +0800
committerobscuren <geffobscura@gmail.com>2014-10-02 23:03:36 +0800
commitb55e017e620d8049788eda91424d4944ac934613 (patch)
tree23f6659135f698886d83585d28cff35ccaadef51
parent82be3054961864dfd5bbeaec2ab961f593203dbf (diff)
downloaddexon-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
-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:]...)
}
}