aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil
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 /ethutil
parent82be3054961864dfd5bbeaec2ab961f593203dbf (diff)
downloadgo-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.gz
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.bz2
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.lz
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.xz
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.tar.zst
go-tangerine-b55e017e620d8049788eda91424d4944ac934613.zip
Proper delete
Diffstat (limited to 'ethutil')
-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:]...)
}
}