Skip to content

Instantly share code, notes, and snippets.

@vijairaj
Forked from rust-play/playground.rs
Created December 11, 2018 17:54
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 vijairaj/36722a929e9bb536804668e23c6f557b to your computer and use it in GitHub Desktop.
Save vijairaj/36722a929e9bb536804668e23c6f557b 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