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