Created
January 23, 2022 06:41
-
-
Save fanbyprinciple/80bac31f27c0735315bacf8a0c5e23d8 to your computer and use it in GitHub Desktop.
madlib generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let color = std::env::args().nth(1).expect("Please provide a color"); | |
| let animal = std::env::args().nth(2).expect("Please provide an animal"); | |
| let friend = std::env::args().nth(3).expect("Please provide a friend's name"); | |
| println!("Roses can be {}, {} could be blue, {} is open minded and so should be you.", color, animal, friend); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment