Fix the 'for loop' snippet missing index bug.
Merge pull request #5 from mrtoniliu/master

Fix the 'for loop' snippet missing index bug.