Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/error/option_unwrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ controlled result while retaining the option to `panic` if desired.
fn give_commoner(gift: Option<&str>) {
// Specify a course of action for each case.
match gift {
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."),
Some(inner) => println!("{}? How nice.", inner),
None => println!("No gift? Oh well."),
}
Expand Down