Correct variable name inside for loop

This commit is contained in:
Daniel Ceballos
2023-10-05 12:15:24 -06:00
parent 722b969100
commit f9d168af37

View File

@ -72,7 +72,7 @@ fn main() {
let numbers = [1, 2, 3]; let numbers = [1, 2, 3];
// The elements in numbers are Copyso there is no move here // The elements in numbers are Copyso there is no move here
for n in numbers { for n in numbers {
// Do something with name... // Do something with n...
} }
println!("{:?}", numbers); println!("{:?}", numbers);