Skip to content

Commit 71429f5

Browse files
authored
fix a comment in std::iter::successors
The `unfold` function have since been renamed to `from_fn`.
1 parent f222a2d commit 71429f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/sources/successors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ where
1717
F: FnMut(&T) -> Option<T>,
1818
{
1919
// If this function returned `impl Iterator<Item=T>`
20-
// it could be based on `unfold` and not need a dedicated type.
20+
// it could be based on `from_fn` and not need a dedicated type.
2121
// However having a named `Successors<T, F>` type allows it to be `Clone` when `T` and `F` are.
2222
Successors { next: first, succ }
2323
}

0 commit comments

Comments
 (0)