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:
parent
655dfbc67f
commit
72d2b7f034
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue