2018-02-21 22:09:53 -08:00
|
|
|
// strings1.rs
|
2019-11-11 16:51:38 +01:00
|
|
|
// Make me compile without changing the function signature!
|
2022-07-14 12:18:21 +02:00
|
|
|
// Execute `rustlings hint strings1` or use the `hint` watch subcommand for a hint.
|
2015-09-20 18:03:00 -04:00
|
|
|
|
2019-11-11 13:38:24 +01:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2015-09-20 18:03:00 -04:00
|
|
|
fn main() {
|
|
|
|
let answer = current_favorite_color();
|
|
|
|
println!("My current favorite color is {}", answer);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn current_favorite_color() -> String {
|
|
|
|
"blue"
|
|
|
|
}
|