ds-learn-rust 0.1.1

Code that I wrote while learning Rust from the Rust Book
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn ch_08_01() {
    let mut v = vec![1, 2, 3];
    v.push(4);
    for i in &mut v {
        *i += 10;
        println!("{}", i);
    }

    let m = &v[1];
    println!("{} {:?}", m, v.get(10).unwrap_or(&mut 4));
}