面试题答案
一键面试fn main() {
let s = "hello world, hello rust";
let new_s = s.replace("hello", "hi");
println!("{}", new_s);
}
fn main() {
let s = "hello world, hello rust";
let new_s = s.replace("hello", "hi");
println!("{}", new_s);
}