string1 solution

This commit is contained in:
mo8it
2024-06-22 12:05:28 +02:00
parent 2901d85662
commit bd63ece47c
2 changed files with 15 additions and 8 deletions
+9 -1
View File
@@ -1 +1,9 @@
// Solutions will be available before the stable release. Thank you for testing the beta version 🥰
fn current_favorite_color() -> String {
// Equivalent to `String::from("blue")`
"blue".to_string()
}
fn main() {
let answer = current_favorite_color();
println!("My current favorite color is {answer}");
}