diff --git a/single_file_tests/string.rs b/single_file_tests/string.rs new file mode 100644 index 0000000..8b4f5e1 --- /dev/null +++ b/single_file_tests/string.rs @@ -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); +} \ No newline at end of file