feat: add single file string.rs
This commit is contained in:
11
single_file_tests/string.rs
Normal file
11
single_file_tests/string.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
fn main() {
|
||||
let mut hello = String::from("hello");
|
||||
hello.remove(3);
|
||||
println!("removed : {}", hello);
|
||||
hello.pop();
|
||||
println!("poped : {}", hello);
|
||||
hello.truncate(1);
|
||||
println!("truncated: {}", hello);
|
||||
hello.clear();
|
||||
println!("cleared : {}", hello);
|
||||
}
|
||||
Reference in New Issue
Block a user