Update fizzbuzz.rs

This commit is contained in:
Rust & Python 2021-09-29 21:42:53 +05:30 committed by GitHub
parent 0b1af87faf
commit cc62b8b5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,12 +12,6 @@
// I AM NOT DONE
pub fn fizzbuzz(num: i32) -> String {
match (num % 3, num % 5) {
(0, 0) => "fizzbuzz".to_string(),
(0, _) => "fizz".to_string(),
(_, 0) => "buzz".to_string(),
(_, _) => num.to_string(),
}
}
// Don't change this part(the tests)