mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-04-21 12:58:08 +08:00
10 lines
140 B
Rust
10 lines
140 B
Rust
fn main() {
|
|
let s = String::from("hello");
|
|
|
|
change(&s);
|
|
}
|
|
|
|
fn change(some_string: &String) {
|
|
some_string.push_str(", world");
|
|
}
|