From 0d7d44258ef03b164dec4f2d1a07be012f1fdff8 Mon Sep 17 00:00:00 2001 From: delta549 Date: Sat, 4 Mar 2023 13:38:02 +0000 Subject: [PATCH] Added proposed change to variables shadowing problem 6 --- solutions/variables.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/solutions/variables.md b/solutions/variables.md index eae4f6d..bedd84f 100644 --- a/solutions/variables.md +++ b/solutions/variables.md @@ -83,8 +83,7 @@ fn main() { let mut x: i32 = 1; x = 7; // Shadowing and re-binding - let mut x = x; - x += 3; + let x = x; let y = 4;