strings1.rs (222B)
1 fn current_favorite_color() -> String { 2 // Equivalent to `String::from("blue")` 3 "blue".to_string() 4 } 5 6 fn main() { 7 let answer = current_favorite_color(); 8 println!("My current favorite color is {answer}"); 9 }
rustlingssolving rustlings ft. dracuxan | |
| git clone [email protected]:dracuxan/rustlings.git | |
| Log | Files | Refs |