Fix incorrect materialized types = Unit in stream documentation (#21938)
* Fix incorrect materialized types = Unit in stream documentation (Fixes #21937) * Correct Int, which should be Integer in Java * Replace BoxedUnit in stream doc
This commit is contained in:
parent
c38d3850a2
commit
3df22baf3a
8 changed files with 15 additions and 15 deletions
|
|
@ -181,7 +181,7 @@ class CompositionDocSpec extends AkkaSpec {
|
|||
// Materializes to Promise[Option[Int]] (red)
|
||||
val source: Source[Int, Promise[Option[Int]]] = Source.maybe[Int]
|
||||
|
||||
// Materializes to Unit (black)
|
||||
// Materializes to NotUsed (black)
|
||||
val flow1: Flow[Int, Int, NotUsed] = Flow[Int].take(100)
|
||||
|
||||
// Materializes to Promise[Int] (red)
|
||||
|
|
@ -190,7 +190,7 @@ class CompositionDocSpec extends AkkaSpec {
|
|||
//#mat-combine-1
|
||||
|
||||
//#mat-combine-2
|
||||
// Materializes to Unit (orange)
|
||||
// Materializes to NotUsed (orange)
|
||||
val flow2: Flow[Int, ByteString, NotUsed] = Flow[Int].map { i => ByteString(i.toString) }
|
||||
|
||||
// Materializes to Future[OutgoingConnection] (yellow)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue