mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 20:49:41 +00:00
@ -38,9 +38,9 @@ fn main() {
|
|||||||
let x: i32 = 10;
|
let x: i32 = 10;
|
||||||
{
|
{
|
||||||
let y: i32 = 5;
|
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);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user