rails/rails — pull request #4747 by ndbroadbent (2012-01-29 21:20:26+00:00)
Title: Use 'for' loops when dealing with ranges.

The code is more readable, and the counter variable doesn't need an isolated scope.

(in response to https://github.com/rails/rails/pull/4744#issuecomment-3711000)