From 371a059220b872fb65af2ef896151dd578154759 Mon Sep 17 00:00:00 2001 From: "He-Pin(kerr)" Date: Mon, 22 Jan 2024 14:16:46 +0800 Subject: [PATCH] chore: Fix typo in fold.md. (#1018) --- docs/src/main/paradox/stream/operators/Sink/fold.md | 4 ++-- docs/src/main/paradox/stream/operators/index.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/paradox/stream/operators/Sink/fold.md b/docs/src/main/paradox/stream/operators/Sink/fold.md index f4040d8c804..ad0e141e60d 100644 --- a/docs/src/main/paradox/stream/operators/Sink/fold.md +++ b/docs/src/main/paradox/stream/operators/Sink/fold.md @@ -1,6 +1,6 @@ # Sink.fold -Fold over emitted element with a function, where each invocation will get the new element and the result from the previous fold invocation. +Fold over emitted elements with a function, where each invocation will get the new element and the result from the previous fold invocation. @ref[Sink operators](../index.md#sink-operators) @@ -10,7 +10,7 @@ Fold over emitted element with a function, where each invocation will get the ne ## Description -Fold over emitted element with a function, where each invocation will get the new element and the result from the +Fold over emitted elements with a function, where each invocation will get the new element and the result from the previous fold invocation. The first invocation will be provided the `zero` value. Materializes into a @scala[`Future`] @java[`CompletionStage`] that will complete with the last state when the stream has completed. diff --git a/docs/src/main/paradox/stream/operators/index.md b/docs/src/main/paradox/stream/operators/index.md index 4fbb26ebcb0..6fd8ad43231 100644 --- a/docs/src/main/paradox/stream/operators/index.md +++ b/docs/src/main/paradox/stream/operators/index.md @@ -60,7 +60,7 @@ These built-in sinks are available from @scala[`org.apache.pekko.stream.scaladsl |Sink|@ref[collection](Sink/collection.md)|@scala[Collect all values emitted from the stream into a collection.]@java[Operator only available in the Scala API. The closest operator in the Java API is @ref[`Sink.seq`](Sink/seq.md)].| |Sink|@ref[combine](Sink/combine.md)|Combine several sinks into one using a user specified strategy| |Sink|@ref[completionStageSink](Sink/completionStageSink.md)|Streams the elements to the given future sink once it successfully completes. | -|Sink|@ref[fold](Sink/fold.md)|Fold over emitted element with a function, where each invocation will get the new element and the result from the previous fold invocation.| +|Sink|@ref[fold](Sink/fold.md)|Fold over emitted elements with a function, where each invocation will get the new element and the result from the previous fold invocation.| |Sink|@ref[foreach](Sink/foreach.md)|Invoke a given procedure for each element received.| |Sink|@ref[foreachAsync](Sink/foreachAsync.md)|Invoke a given procedure asynchronously for each element received.| |Sink|@ref[foreachParallel](Sink/foreachParallel.md)|Like `foreach` but allows up to `parallellism` procedure calls to happen in parallel.|