Quiz · Errors · lesson 5 of 8
Quiz — unwrap on Err
Question 1 of 2
What does the program print?
fn main() {
let n: i32 = "x".parse().unwrap_or(0);
println!("{n}");
}What does the program print?
fn main() {
let n: i32 = "x".parse().unwrap_or(0);
println!("{n}");
}