mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-05-05 21:18:11 +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");
|
||
|
}
|