Skip to content

Instantly share code, notes, and snippets.

@BrantRoom3327
Last active June 20, 2018 19:33
Show Gist options
  • Save BrantRoom3327/91dec132d0184637427ba6465a673cab to your computer and use it in GitHub Desktop.
Save BrantRoom3327/91dec132d0184637427ba6465a673cab to your computer and use it in GitHub Desktop.
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