[docs] for-loop examples in tutorial does not work