We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06cf778 + 5561d7e commit 330e7a8Copy full SHA for 330e7a8
src/error/option_unwrap/defaults.md
@@ -94,11 +94,11 @@ fn main() {
94
};
95
let first_available_fruit = my_fruit
96
.get_or_insert_with(get_lemon_as_fallback);
97
- println!("my_fruit is: {:?}", first_available_fruit);
98
println!("first_available_fruit is: {:?}", first_available_fruit);
+ println!("my_fruit is: {:?}", my_fruit);
99
// Providing lemon as fallback
100
- // my_fruit is: Lemon
101
// first_available_fruit is: Lemon
+ // my_fruit is: Some(Lemon)
102
103
// If the Option has a value, it is left unchanged, and the closure is not invoked
104
let mut my_apple = Some(Fruit::Apple);
0 commit comments