From a33501e6a7b933c1aa9a0a238edcd20920421249 Mon Sep 17 00:00:00 2001 From: Nahor Date: Thu, 4 Jul 2024 14:23:34 -0700 Subject: [PATCH] Unify fn signature in iterators4 exercise and solution Since this is not about conversion, prefer the option that doesn't require one. --- exercises/18_iterators/iterators4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/18_iterators/iterators4.rs b/exercises/18_iterators/iterators4.rs index 08ba3650..8381dbb1 100644 --- a/exercises/18_iterators/iterators4.rs +++ b/exercises/18_iterators/iterators4.rs @@ -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)