Scope
Scope example that works, this we'll see it break on the next page.
SOURCE CODE
fn main() {
let alfa = 1;
{
let bravo = 2;
println!("bravo {}", bravo);
}
println!("alfa {}", alfa);
}
Scope example that works, this we'll see it break on the next page.
fn main() {
let alfa = 1;
{
let bravo = 2;
println!("bravo {}", bravo);
}
println!("alfa {}", alfa);
}