For over reversed range

This commit is contained in:
Dan Buch 2017-12-22 10:33:02 -05:00
parent 7b25d7660d
commit c49281b26d
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -1,7 +1,6 @@
fn main() {
let a = [10, 20, 30, 40, 50];
for element in a.iter() {
println!("the value is: {}", element);
for number in (1..4).rev() {
println!("{}!", number);
}
println!("LIFTOFF!!!");
}