Update doc/tutorial/loop.txt

It is unclear that A was an argument to inner_fct, because it is masking a variable named A in the surrounding scope. This was VERY confusing when trying to understand this code.
Merge pull request #1149 from aelaguiz/patch-1

Update doc/tutorial/loop.txt