Merge pull request #47 from tgruben/inspect-fix

fixed bug in slice container seek
This commit is contained in:
tgruben 2019-11-26 11:35:51 -06:00 committed by GitHub
commit 16d5db97a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ func (sc *sliceContainers) Update(key uint64, fn func(*Container, bool) (*Contai
// don't expand the slice just to add a nil container, we
// could return that anyway
if write && nc != nil {
sc.insertAt(key, nc, -i-1)
sc.insertAt(key, nc, i)
}
}
}