From 714c577aa1d66f8100f9942e55bbc04819b50700 Mon Sep 17 00:00:00 2001 From: Anton <70934030+friendlyantz@users.noreply.github.com> Date: Sat, 13 Apr 2024 11:46:46 +1000 Subject: [PATCH] Update variables.md different messages for inner and outer scopes --- en/src/variables.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/src/variables.md b/en/src/variables.md index 527062d..fc22c66 100644 --- a/en/src/variables.md +++ b/en/src/variables.md @@ -38,9 +38,9 @@ fn main() { let x: i32 = 10; { let y: i32 = 5; - println!("The value of x is {} and value of y is {}", x, y); + println!("Inner scope value of x is {} and value of y is {}", x, y); } - println!("The value of x is {} and value of y is {}", x, y); + println!("Outer scope value of x is {} and value of y is {}", x, y); } ```