From 64f606427fb7a04e613192a3075b2afc84d34f80 Mon Sep 17 00:00:00 2001 From: Sudarshan Kondgekar Date: Tue, 11 Oct 2022 14:26:18 +0530 Subject: [PATCH] Solution update --- solutions/variables.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/solutions/variables.md b/solutions/variables.md index d3543de..eae4f6d 100644 --- a/solutions/variables.md +++ b/solutions/variables.md @@ -82,14 +82,16 @@ fn main() { fn main() { let mut x: i32 = 1; x = 7; - // shadowing and re-binding - let x = x; - // x += 3; + // Shadowing and re-binding + let mut x = x; + x += 3; let y = 4; - // shadowing - let y = "I can also be bound to text!"; + // Shadowing + let y = "I can also be bound to text!"; + + println!("Success!"); } ```