idx should return -1

This commit is contained in:
obscuren 2014-12-18 11:55:46 +01:00
parent df3366d910
commit 4b2f1f7628
1 changed files with 1 additions and 1 deletions

View File

@ -397,5 +397,5 @@ func (it *ValueIterator) Value() *Value {
}
func (it *ValueIterator) Idx() int {
return it.idx
return it.idx - 1
}