We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ca14c56 + 7ce0b67 commit 62a78c4Copy full SHA for 62a78c4
src/libcore/iter/sources.rs
@@ -375,8 +375,8 @@ pub fn once<T>(value: T) -> Once<T> {
375
Once { inner: Some(value).into_iter() }
376
}
377
378
-/// An iterator that repeats elements of type `A` endlessly by
379
-/// applying the provided closure `F: FnMut() -> A`.
+/// An iterator that yields a single element of type `A` by
+/// applying the provided closure `F: FnOnce() -> A`.
380
///
381
/// This `struct` is created by the [`once_with`] function.
382
/// See its documentation for more.
0 commit comments