Skip to content

Commit 3c63ef0

Browse files
YsuOSmanyinsects
authored andcommitted
fix(iterators3): insert todo!() into divide() to compile without error
1 parent cf9629c commit 3c63ef0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/standard_library_types/iterators3.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ pub struct NotDivisibleError {
2222

2323
// Calculate `a` divided by `b` if `a` is evenly divisible by `b`.
2424
// Otherwise, return a suitable error.
25-
pub fn divide(a: i32, b: i32) -> Result<i32, DivisionError> {}
25+
pub fn divide(a: i32, b: i32) -> Result<i32, DivisionError> {
26+
todo!();
27+
}
2628

2729
// Complete the function and return a value of the correct type so the test passes.
2830
// Desired output: Ok([1, 11, 1426, 3])

0 commit comments

Comments
 (0)