Fix current_favorite_color function to return a String

This commit is contained in:
Rock070 2023-12-30 12:13:20 +08:00
parent 23a2a21036
commit 27d1c37b1c

View File

@ -5,13 +5,11 @@
// Execute `rustlings hint strings1` or use the `hint` watch subcommand for a
// hint.
// I AM NOT DONE
fn main() {
let answer = current_favorite_color();
println!("My current favorite color is {}", answer);
}
fn current_favorite_color() -> String {
"blue"
String::from("blue")
}