Merge pull request #20 from akshitgautam42/Ex-21

Exercise 21
This commit is contained in:
Akshit Gautam 2023-11-12 12:15:05 +05:30 committed by GitHub
commit ae52c49645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,10 @@
// Execute `rustlings hint primitive_types5` or use the `hint` watch subcommand
// for a hint.
// I AM NOT DONE
fn main() {
let cat = ("Furry McFurson", 3.5);
let /* your pattern here */ = cat;
let (name,age) = cat;
println!("{} is {} years old.", name, age);
}