Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active January 31, 2022 23:02
Show Gist options
  • Save ihcsim/d672f7d63fa6be6a0a4f459fac86c749 to your computer and use it in GitHub Desktop.
Save ihcsim/d672f7d63fa6be6a0a4f459fac86c749 to your computer and use it in GitHub Desktop.
fn main() {
let str1 = "Hello world".to_string();
let str2 = str1;
println!("{}\n{}", str1, str2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment