Last active
February 2, 2022 19:21
-
-
Save ihcsim/e3b5918380f72ed6ee22d07c0a0ec6f3 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 str = "hello".to_string(); | |
println!("original: {}\nupdated: {}", str, append_suffix(str)); | |
} | |
fn append_suffix(s: String) -> String { | |
s + " world" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment