references
This commit is contained in:
parent
aaa0c9143e
commit
62b4865c9c
22 changed files with 6 additions and 0 deletions
|
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue