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.
1 parent 8888f94 commit 88a102eCopy full SHA for 88a102e
src/error/option_unwrap/defaults.md
@@ -70,7 +70,7 @@ fn main() {
70
let mut my_fruit: Option<Fruit> = None;
71
let apple = Fruit::Apple;
72
let first_available_fruit = my_fruit.get_or_insert(apple);
73
- println!("my_fruit is: {:?}", first_available_fruit);
+ println!("my_fruit is: {:?}", my_fruit);
74
println!("first_available_fruit is: {:?}", first_available_fruit);
75
// my_fruit is: Apple
76
// first_available_fruit is: Apple
0 commit comments