fix classic index bug

This commit is contained in:
Torsten Ruger
2015-05-24 15:05:58 +03:00
parent 6786855e95
commit 1170761922
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ module Parfait
def index_of( item )
max = self.get_length
counter = 1
while( counter < max )
while( counter <= max )
if( get(counter) == item)
return counter
end