...

/

Multiple Variables and Shadowing

Multiple Variables and Shadowing

We'll cover the following...

We’re not limited to just one variable. It’s fine to define as many as we’d like:

Press + to interact
fn main() {
let x = 5;
let y = 10;
let name = "Michael";
println!("My name is {}, and the answer is {}", name, x + y);
}

We can also use this technique to break ...