chore: Fix typo for Source.fromIterator operator. (#1242)

This commit is contained in:
He-Pin(kerr) 2024-03-31 17:12:04 +08:00 committed by GitHub
parent a2835b029d
commit aba2785428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

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

View file

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