Why does the second print returns false[9, 33] ?
fn main() {
let a = vec![9,33,11];
let b = match a.get(10) {
None => false,
_ => true
};
print!("{}", b); // THIS IS THE FIRST PRINTLN
let x = &a[0..2];
print!("{:?}", x); // THIS IS THE SECOND PRINTLN
}```
I expected to return [9, 33]
If i remove the first print then it returns [9, 33]
Why does the first print provokes this strange behavior ?