Skip to content

Commit

Permalink
tuple extension
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar24 committed Oct 24, 2024
1 parent 8ef7fa0 commit 41882d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ fn rebind() {
}

fn tuples() {
println!("tuples destructuring");
println!("tuples");

let tup: (u8,u16) = (0u8,1u16);
println!("{:?}", tup);

let (mut x, y) = (1, 2);
x += 2;
Expand Down

0 comments on commit 41882d1

Please sign in to comment.