Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let waiting = Some("I'm Waiting for Vizzini.");
//Rust's match statement lets you figure out if you got Some or None
match waiting {
Some(c) => println!("{}", c),
None => println!("You got None"),
Prints "I'm Waiting for Vizzini."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment