Skip to content

Commit 3cc8ace

Browse files
authored
chore: Fix typo for Source.fromIterator operator. (#1242) (#1243)
(cherry picked from commit aba2785)
1 parent be9ad0a commit 3cc8ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stream/src/main/scala/org/apache/pekko/stream/javadsl/Source.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ object Source {
102102
* Source.from(() -> data.iterator());
103103
* }}}
104104
*
105-
* Start a new `Source` from the given Iterator. The produced stream of elements
105+
* Start a new `Source` from the given function that produces an Iterator. The produced stream of elements
106106
* will continue until the iterator runs empty or fails during evaluation of
107107
* the `next()` method. Elements are pulled out of the iterator
108108
* in accordance with the demand coming from the downstream transformation

stream/src/main/scala/org/apache/pekko/stream/scaladsl/Source.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ object Source {
272272
* Helper to create [[Source]] from `Iterator`.
273273
* Example usage: `Source.fromIterator(() => Iterator.from(0))`
274274
*
275-
* Start a new `Source` from the given function that produces anIterator.
275+
* Start a new `Source` from the given function that produces an Iterator.
276276
* The produced stream of elements will continue until the iterator runs empty
277277
* or fails during evaluation of the `next()` method.
278278
* Elements are pulled out of the iterator in accordance with the demand coming

0 commit comments

Comments
 (0)