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.