let mut array: [i32 ; 3] = [2,6,10]; array[1] = 4; array[2] = 6;
Use the mut keyword to make it mutable.
mut