I'm new to rust and I've question about the way the for loop.
fn main() {
for x in 1 .. 10 {
println!("x == {}", x);
}
}
The output of the program is
x == 1
x == 2
x == 3
x == 4
x == 5
x == 6
x == 7
x == 8
x == 9
I was expecting for loop to execute and display x == 10
but it stopped at 9.
Is this expected behavior