Skip to content

Commit

Permalink
Merge pull request #7 from sandroconforto/master
Browse files Browse the repository at this point in the history
Iteration up to array length-1
  • Loading branch information
sleepyfox committed Aug 18, 2012
2 parents 169427c + f40cc35 commit 65bb203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion koans/AboutApplyingWhatWeHaveLearnt.coffee
Expand Up @@ -11,7 +11,7 @@ describe 'About Applying What We Have Learnt', ->
it 'should find a needle in a haystack (imperative)', ->
findNeedle = (ops) ->
hasInvalidOperation = false
for i in [0..ops.length]
for i in [0..ops.length-1]
if (ops[i].direction == 'FWD' && ops[i].distance > 100)
hasInvalidOperation = true
break
Expand Down

0 comments on commit 65bb203

Please sign in to comment.