From 2527c5a36fbac462d2506ff7c978190ed76a8654 Mon Sep 17 00:00:00 2001 From: dcattaneo Date: Fri, 8 Mar 2024 13:52:42 +0100 Subject: [PATCH] variables done --- exercises/variables/variables5.rs | 3 +-- exercises/variables/variables6.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/exercises/variables/variables5.rs b/exercises/variables/variables5.rs index a29b38be..2a312acb 100644 --- a/exercises/variables/variables5.rs +++ b/exercises/variables/variables5.rs @@ -3,11 +3,10 @@ // Execute `rustlings hint variables5` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE fn main() { let number = "T-H-R-E-E"; // don't change this line println!("Spell a Number : {}", number); - number = 3; // don't rename this variable + let number = 3; // don't rename this variable println!("Number plus two is : {}", number + 2); } diff --git a/exercises/variables/variables6.rs b/exercises/variables/variables6.rs index 853183ba..8e415d57 100644 --- a/exercises/variables/variables6.rs +++ b/exercises/variables/variables6.rs @@ -3,9 +3,9 @@ // Execute `rustlings hint variables6` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE -const NUMBER = 3; + +const NUMBER : i32 = 3; fn main() { println!("Number {}", NUMBER); }