fn main() {
    let a_vector = vec![1i, 2i, 3i];
    let mut mut_vector = a_vector;
    *mut_vector.get_mut(0) = 5;

    println!("The first number is {:d}.", mut_vector[0])
}


fn main() {
    let a_vector = ~[1,2,3];
    let mut mut_vector = a_vector;
    mut_vector[0] = 5;

    println!("The first number is {:d}.", mut_vector[0])
}


--- 
+++ 
@@ -1,7 +1,7 @@
 fn main() {
-    let a_vector = ~[1,2,3];
+    let a_vector = vec![1i, 2i, 3i];
     let mut mut_vector = a_vector;
-    mut_vector[0] = 5;
+    *mut_vector.get_mut(0) = 5;
 
     println!("The first number is {:d}.", mut_vector[0])
 }
Update code sample for chapter 9.
