From 467a46d2db42fa24aefbbe60a6536e56385f35a8 Mon Sep 17 00:00:00 2001 From: Muskan Gupta Date: Mon, 20 Dec 2021 13:48:28 +0530 Subject: [PATCH] Replace FoldSink with sink (#31003) --- akka-docs/src/test/scala/docs/stream/FlowDocSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-docs/src/test/scala/docs/stream/FlowDocSpec.scala b/akka-docs/src/test/scala/docs/stream/FlowDocSpec.scala index f8f3447163..67241aee3d 100644 --- a/akka-docs/src/test/scala/docs/stream/FlowDocSpec.scala +++ b/akka-docs/src/test/scala/docs/stream/FlowDocSpec.scala @@ -41,7 +41,7 @@ class FlowDocSpec extends AkkaSpec with CompileOnlySpec { // connect the Source to the Sink, obtaining a RunnableGraph val runnable: RunnableGraph[Future[Int]] = source.toMat(sink)(Keep.right) - // materialize the flow and get the value of the FoldSink + // materialize the flow and get the value of the sink val sum: Future[Int] = runnable.run() //#materialization-in-steps @@ -64,7 +64,7 @@ class FlowDocSpec extends AkkaSpec with CompileOnlySpec { val runnable: RunnableGraph[Future[Int]] = Source(1 to 10).toMat(sink)(Keep.right) - // get the materialized value of the FoldSink + // get the materialized value of the sink val sum1: Future[Int] = runnable.run() val sum2: Future[Int] = runnable.run()