1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-16 10:51:42 +02:00

Merge pull request #2018 from Nahor/iterators4

Unify fn signature in iterators4 exercise and solution
This commit is contained in:
Mo 2024-07-04 23:37:38 +02:00 committed by GitHub
commit e479ec8fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
fn factorial(num: u8) -> u64 {
fn factorial(num: u64) -> u64 {
// TODO: Complete this function to return the factorial of `num`.
// Do not use:
// - early returns (using the `return` keyword explicitly)