Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created April 7, 2022 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rust-play/b14f932777921b9b958f2b890ab41f08 to your computer and use it in GitHub Desktop.
Save rust-play/b14f932777921b9b958f2b890ab41f08 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
fn main() {
let item: Option<usize> = Some(3);
match item {
Some(v) => {
dbg!(v);
}
None => {
dbg!("none");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment