Archived
1
0
This repository has been archived on 2025-10-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Gustavo "Guz" L. de Mello 233ff077d5 ruslings project
2024-02-27 14:26:01 -03:00

16 lines
351 B
Rust

// strings1.rs
//
// Make me compile without changing the function signature!
//
// Execute `rustlings hint strings1` or use the `hint` watch subcommand for a
// hint.
fn main() {
let answer = current_favorite_color();
println!("My current favorite color is {}", answer);
}
fn current_favorite_color() -> String {
String::from("blue")
}