RosettaCodeData/Task/String-append/Rust/string-append-1.rs

7 lines
117 B
Rust
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
use std::ops::Add;
fn main(){
let hello = String::from("Hello world");
println!("{}", hello.add("!!!!"));
}