We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da77fab commit 0ea189fCopy full SHA for 0ea189f
core/src/iter/sources/successors.rs
@@ -17,7 +17,7 @@ where
17
F: FnMut(&T) -> Option<T>,
18
{
19
// If this function returned `impl Iterator<Item=T>`
20
- // it could be based on `unfold` and not need a dedicated type.
+ // it could be based on `from_fn` and not need a dedicated type.
21
// However having a named `Successors<T, F>` type allows it to be `Clone` when `T` and `F` are.
22
Successors { next: first, succ }
23
}
0 commit comments