mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-12 21:08:45 +00:00
fix typo in src/assignments/assignment07/small_exercises.rs
This commit is contained in:
@@ -52,7 +52,7 @@ pub fn fib<T>(first: T, second: T) -> impl Iterator<Item = T>
|
|||||||
where
|
where
|
||||||
T: std::ops::Add<Output = T> + Copy,
|
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()
|
std::iter::empty()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ impl Iterator for RangeIter {
|
|||||||
|
|
||||||
/// Returns an iterator over the range [left, right) with the given step.
|
/// 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> {
|
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()
|
std::iter::empty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user