rust_book_code 0.2.1

The code of rust book
Documentation
1
2
3
4
5
6
7
8
9
10
pub fn panic_demo() {
    panic!("crash and burn");
}

pub fn index_out_bounds() {
    let v = vec![1, 2, 3];

    // v[99];
    assert!(v.len() > 99);
}