Update Examples

Glen Whitney 2024-08-25 01:00:35 +00:00
parent a23e1fa400
commit 3346034900

@ -547,7 +547,7 @@ fn main() {
println!("inner short: {}", short_lived_binding);
}
// Error! `short_lived_binding` doesn't exist in this scope
// Error! `short_lived_binding` doesn't exist here
println!("outer short: {}", short_lived_binding);
// FIXME ^ Comment out this line
@ -564,7 +564,7 @@ fn main
let short_lived_binding = 2
println! "inner short: {}", short_lived_binding
// Error! `short_lived_binding` doesn't exist in this scope
// Error! `short_lived_binding` doesn't exist here
println! "outer short: {}", short_lived_binding
// FIXME ^ Comment out this line