Skip to content

Commit 401ba55

Browse files
authored
Explained why it should not work in Chapter 4.1
1 parent efe23c4 commit 401ba55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/variable_bindings/mut.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ fn main() {
1515
1616
println!("After mutation: {}", mutable_binding);
1717
18-
// Error!
18+
// Error! Cannot assign a new value to an immutable variable
1919
_immutable_binding += 1;
20-
// FIXME ^ Comment out this line
2120
}
2221
```
2322

0 commit comments

Comments
 (0)