Merge pull request #516 from friendlyantz/patch-1

Update variables.md
This commit is contained in:
Sunface
2024-04-13 10:34:01 +08:00
committed by GitHub

View File

@ -38,9 +38,9 @@ fn main() {
let x: i32 = 10;
{
let y: i32 = 5;
println!("The value of x is {} and value of y is {}", x, y);
println!("Inner scope value of x is {} and value of y is {}", x, y);
}
println!("The value of x is {} and value of y is {}", x, y);
println!("Outer scope value of x is {} and value of y is {}", x, y);
}
```