Solution update
This commit is contained in:
parent
2c73233b74
commit
64f606427f
|
@ -82,14 +82,16 @@ fn main() {
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut x: i32 = 1;
|
let mut x: i32 = 1;
|
||||||
x = 7;
|
x = 7;
|
||||||
// shadowing and re-binding
|
// Shadowing and re-binding
|
||||||
let x = x;
|
let mut x = x;
|
||||||
// x += 3;
|
x += 3;
|
||||||
|
|
||||||
|
|
||||||
let y = 4;
|
let y = 4;
|
||||||
// shadowing
|
// Shadowing
|
||||||
let y = "I can also be bound to text!";
|
let y = "I can also be bound to text!";
|
||||||
|
|
||||||
|
println!("Success!");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue