Merge pull request #297 from n1net4il/pr-2a737078

Correct minor typo in src/assignments/assignment07/small_exercises.rs
This commit is contained in:
Woojin Lee
2023-11-21 17:09:15 +09:00
committed by GitHub

View File

@@ -52,7 +52,7 @@ pub fn fib<T>(first: T, second: T) -> impl Iterator<Item = T>
where
T: std::ops::Add<Output = T> + Copy,
{
todo!("replace `std::iter::empty() with your owm implementation`");
todo!("replace `std::iter::empty() with your own implementation`");
std::iter::empty()
}
@@ -86,7 +86,7 @@ impl Iterator for RangeIter {
/// Returns an iterator over the range [left, right) with the given step.
pub fn range(left: Endpoint, right: Endpoint, step: isize) -> impl Iterator<Item = isize> {
todo!("replace `std::iter::empty() with your owm implementation`");
todo!("replace `std::iter::empty() with your own implementation`");
std::iter::empty()
}