Created
April 13, 2018 01:09
-
-
Save starfys/05aa861947757b601a76ce695e3990f1 to your computer and use it in GitHub Desktop.
This file contains 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
let day_name = match day_number { | |
0 => "Sunday", | |
1 => "Monday", | |
2 => "Tuesday", | |
3 => "Wednesday", | |
4 => "Thursday", | |
5 => "Friday", | |
6 => "Saturday" | |
_ => panic!("There are only 7 days in a week.") | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment