Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active February 1, 2022 05:02
Show Gist options
  • Save ihcsim/7a9b546e5eb43e359d0a56de10ff29e0 to your computer and use it in GitHub Desktop.
Save ihcsim/7a9b546e5eb43e359d0a56de10ff29e0 to your computer and use it in GitHub Desktop.
fn main() {
let (b, n) = read();
println!("{} {}", b, n);
}
fn read() -> (String, usize) {
let s = "some data".to_string();
(s, s.len())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment