2024-06-10 18:41:25 +08:00

17 lines
352 B
Rust

// strings1.rs
//
// 使我在不改變函數簽名的情況下編譯!
//
// 執行 `rustlings hint strings1` 或使用 `hint` watch 子命令來獲取提示。
// I AM NOT DONE
fn main() {
let answer = current_favorite_color();
println!("我現在最喜歡的顏色是 {}", answer);
}
fn current_favorite_color() -> String {
"blue"
}