From 72d2b7f034997e2f02940ab0e149e1651fd6ed04 Mon Sep 17 00:00:00 2001 From: Nicolas Deverge Date: Wed, 4 Mar 2020 17:12:23 +0100 Subject: [PATCH] Issue with the documentation for Partition (#28682) The sample does not work as the outlet for odd numbers should be connected to the other port. --- .../test/scala/docs/stream/operators/PartitionDocExample.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-docs/src/test/scala/docs/stream/operators/PartitionDocExample.scala b/akka-docs/src/test/scala/docs/stream/operators/PartitionDocExample.scala index bbb746b1da..92431dc2a3 100644 --- a/akka-docs/src/test/scala/docs/stream/operators/PartitionDocExample.scala +++ b/akka-docs/src/test/scala/docs/stream/operators/PartitionDocExample.scala @@ -35,7 +35,7 @@ object PartitionDocExample { val partition = builder.add(Partition[Int](2, element => if (element % 2 == 0) 0 else 1)) source ~> partition.in partition.out(0) ~> even - partition.out(0) ~> odd + partition.out(1) ~> odd ClosedShape }) .run()