From 2c73233b745104841485a7ac535552e502e2f172 Mon Sep 17 00:00:00 2001 From: Sudarshan Kondgekar Date: Tue, 11 Oct 2022 14:12:36 +0530 Subject: [PATCH] Updated solution --- solutions/variables.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solutions/variables.md b/solutions/variables.md index 44dcc43..d3543de 100644 --- a/solutions/variables.md +++ b/solutions/variables.md @@ -24,11 +24,12 @@ fn main() { ```rust fn main() { let x: i32 = 10; + let y: i32 = 20; { let y: i32 = 5; println!("The value of x is {} and value of y is {}", x, y); } - println!("The value of x is {}", x); + println!("The value of x is {} and value of y is {}", x, y); } ```