diff --git a/strings/strings3.rs b/strings/strings3.rs index dbba39d..a4e5775 100644 --- a/strings/strings3.rs +++ b/strings/strings3.rs @@ -10,6 +10,8 @@ fn main() { ("blue"); ("red".to_string()); (String::from("hi")); + ("rust is fun!".to_owned()); + ("nice weather".into()); (format!("Interpolation {}", "Station")); (&String::from("abc")[0..1]); (" hello there ".trim());