Solution update

This commit is contained in:
Sudarshan Kondgekar 2022-10-11 14:26:18 +05:30
parent 2c73233b74
commit 64f606427f
1 changed files with 7 additions and 5 deletions

View File

@ -82,14 +82,16 @@ fn main() {
fn main() {
let mut x: i32 = 1;
x = 7;
// shadowing and re-binding
let x = x;
// x += 3;
// Shadowing and re-binding
let mut x = x;
x += 3;
let y = 4;
// shadowing
let y = "I can also be bound to text!";
// Shadowing
let y = "I can also be bound to text!";
println!("Success!");
}
```