Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created December 11, 2018 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rust-play/4eec4a75b8a7dc361ad465c07582b805 to your computer and use it in GitHub Desktop.
Save rust-play/4eec4a75b8a7dc361ad465c07582b805 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
// tuple
fn main() {
let (x, y, z) = (1, 2.0, "abc");
let xyz = (1, 2.0, (10, 20));
println!("{} {} {}", x, y, z);
println!("{} {} {:?}", xyz.0, xyz.1, xyz.2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment