Skip to content

Commit a33501e

Browse files
committed
Unify fn signature in iterators4 exercise and solution
Since this is not about conversion, prefer the option that doesn't require one.
1 parent 47f8199 commit a33501e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/18_iterators/iterators4.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
fn factorial(num: u8) -> u64 {
1+
fn factorial(num: u64) -> u64 {
22
// TODO: Complete this function to return the factorial of `num`.
33
// Do not use:
44
// - early returns (using the `return` keyword explicitly)

0 commit comments

Comments
 (0)