Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
assert_eq!(Some("Andre").unwrap_or("Giant"), "Andre"); // "Andre"
assert_eq!(None.unwrap_or("Vizzini"), "Vizzini"); // "Vizzini"
//from above
assert_eq!(waiting.unwrap_or("Nope"), "I'm Waiting for Vizzini."); // I'm Waiting for Vizzini.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.