fn shared_ref_demo() {
    let v = vec![5,4,3,2,1];
    let first = &v[0];
    vec_min(&v);
    vec_min(&v);
    println!("The first element is: {}", *first);
}
// Now that `vec_min` does not acquire ownership of the vector anymore, we can call it multiple times on the same vector and also do things like
Now that `vec_min` does not acquire ownership of the vector anymore, we can call it multiple times on the same vector and also do things like
Now that ` vec_min ` does not acquire ownership of the vector anymore we can call it multiple times on the same vector and also do things like
fn shared_ref_demo() {
    let v = vec![5,4,3,2,1];
    let first = &v[0];
    vec_min(&v);
    vec_min(&v);
    println!("The first element is: {}", *first);
}
fn shared_ref_demo ( ) { let v = vec ! [ 5 4 3 2 1 ] ; let first = & v [ 0 ] ; vec_min ( & v ) ; vec_min ( & v ) ; println ! ( " " first ) ; }
Now that `vec_min` does not acquire ownership of the vector anymore, we can call it multiple times on the same vector and also do things like
Now that ` vec_min ` does not acquire ownership of the vector anymore we can call it multiple times on the same vector and also do things like