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.
This commit is contained in:
Nicolas Deverge 2020-03-04 17:12:23 +01:00 committed by GitHub
parent 655dfbc67f
commit 72d2b7f034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()