Last active
June 20, 2018 19:33
-
-
Save BrantRoom3327/91dec132d0184637427ba6465a673cab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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