diff --git a/projects/collections/src/main.rs b/projects/collections/src/main.rs index 61aec9e..b0d47f6 100644 --- a/projects/collections/src/main.rs +++ b/projects/collections/src/main.rs @@ -49,4 +49,12 @@ fn main() { } } + let s = String::new(); + let _reference = &s; + let data = "initial contents"; + let mut _s = data.to_string(); + let s2 = "initial contents"; + _s.push_str(s2); + println!("{s2}"); + }