doc: add range iterators in the for loop section
auto merge of #8682 : adridu59/rust/master, r=cmr