summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-06-19 14:17:06 +0200
committermo8it <mo8it@proton.me>2024-06-19 14:17:06 +0200
commit532c9ebb30afa226590e68e87af11da42b598974 (patch)
treedd397d1e19c5d8232c84726dde13265630bdb74d /exercises
parent2a1bc5377177981fa253ae4cb234bce584ce1b62 (diff)
primitive_types5 solution
Diffstat (limited to 'exercises')
-rw-r--r--exercises/04_primitive_types/primitive_types5.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/exercises/04_primitive_types/primitive_types5.rs b/exercises/04_primitive_types/primitive_types5.rs
index f2216a5..6e00ef5 100644
--- a/exercises/04_primitive_types/primitive_types5.rs
+++ b/exercises/04_primitive_types/primitive_types5.rs
@@ -1,8 +1,8 @@
-// Destructure the `cat` tuple so that the println will work.
-
fn main() {
let cat = ("Furry McFurson", 3.5);
- let /* your pattern here */ = cat;
- println!("{} is {} years old.", name, age);
+ // TODO: Destructure the `cat` tuple in one statement so that the println works.
+ // let /* your pattern here */ = cat;
+
+ println!("{name} is {age} years old");
}