From 401ba55fa5478af4da6ddd53dfb2a7eaa1e5b981 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volkan=20Y=C4=B1ld=C4=B1z?= Date: Mon, 13 Feb 2023 17:52:16 +0300 Subject: [PATCH] Explained why it should not work in Chapter 4.1 --- src/variable_bindings/mut.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/variable_bindings/mut.md b/src/variable_bindings/mut.md index 0925132f20..c75f034ecd 100644 --- a/src/variable_bindings/mut.md +++ b/src/variable_bindings/mut.md @@ -15,9 +15,8 @@ fn main() { println!("After mutation: {}", mutable_binding); - // Error! + // Error! Cannot assign a new value to an immutable variable _immutable_binding += 1; - // FIXME ^ Comment out this line } ```