references

This commit is contained in:
Vincent Batts 2023-01-14 13:59:47 -05:00
parent aaa0c9143e
commit 62b4865c9c
22 changed files with 6 additions and 0 deletions

View File

@ -7,4 +7,10 @@ fn main() {
let t: (i8, bool) = (7, true);
println!("t 1st: {}", t.0);
println!("t 2nd: {}", t.1);
let mut x: i32 = 10;
println!("x: {x}");
let ref_x: &mut i32 = &mut x;
*ref_x = 20;
println!("x: {x}");
}

Binary file not shown.