Last active
February 1, 2022 05:02
-
-
Save ihcsim/7a9b546e5eb43e359d0a56de10ff29e0 to your computer and use it in GitHub Desktop.
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
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