From aba2785428e5ccdd9b1ea27d29efe986650a4a36 Mon Sep 17 00:00:00 2001 From: "He-Pin(kerr)" Date: Sun, 31 Mar 2024 17:12:04 +0800 Subject: [PATCH] chore: Fix typo for Source.fromIterator operator. (#1242) --- .../src/main/scala/org/apache/pekko/stream/javadsl/Source.scala | 2 +- .../main/scala/org/apache/pekko/stream/scaladsl/Source.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stream/src/main/scala/org/apache/pekko/stream/javadsl/Source.scala b/stream/src/main/scala/org/apache/pekko/stream/javadsl/Source.scala index e15afb7525..d6fd19c4ed 100755 --- a/stream/src/main/scala/org/apache/pekko/stream/javadsl/Source.scala +++ b/stream/src/main/scala/org/apache/pekko/stream/javadsl/Source.scala @@ -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 diff --git a/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Source.scala b/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Source.scala index a222f74ae5..2df3d110ea 100644 --- a/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Source.scala +++ b/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Source.scala @@ -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