fix(iterators3): insert todo!() into divide() to compile without error

This commit is contained in:
Ryosuke YASUOKA 2022-01-14 00:26:46 +09:00 committed by mokou
parent cf9629cb0e
commit 3c63ef0668

View file

@ -22,7 +22,9 @@ pub struct NotDivisibleError {
// Calculate `a` divided by `b` if `a` is evenly divisible by `b`. // Calculate `a` divided by `b` if `a` is evenly divisible by `b`.
// Otherwise, return a suitable error. // Otherwise, return a suitable error.
pub fn divide(a: i32, b: i32) -> Result<i32, DivisionError> {} pub fn divide(a: i32, b: i32) -> Result<i32, DivisionError> {
todo!();
}
// Complete the function and return a value of the correct type so the test passes. // Complete the function and return a value of the correct type so the test passes.
// Desired output: Ok([1, 11, 1426, 3]) // Desired output: Ok([1, 11, 1426, 3])