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 5bc8bbf + 4ce3cc6 commit e941e08Copy full SHA for e941e08
src/error/option_unwrap.md
@@ -29,7 +29,7 @@ controlled result while retaining the option to `panic` if desired.
29
fn give_commoner(gift: Option<&str>) {
30
// Specify a course of action for each case.
31
match gift {
32
- Some("snake") => println!("Yuck! I'm throwing that snake in a fire."),
+ Some("snake") => println!("Yuck! I'm putting this snake back in the forest."),
33
Some(inner) => println!("{}? How nice.", inner),
34
None => println!("No gift? Oh well."),
35
}
0 commit comments