* Fixed small typo mistake in Sink materialized value * Change Sinks materialized value to Sink's materialized value
This commit is contained in:
parent
4375fe6bd7
commit
889a34e77d
2 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ public class FlowDocTest extends AbstractJavaTest {
|
|||
Source.from(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));
|
||||
final Sink<Integer, CompletionStage<Integer>> sink = Sink.fold(0, Integer::sum);
|
||||
|
||||
// materialize the flow, getting the Sinks materialized value
|
||||
// materialize the flow, getting the Sink's materialized value
|
||||
final CompletionStage<Integer> sum = source.runWith(sink, system);
|
||||
// #materialization-runWith
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class FlowDocSpec extends AkkaSpec with CompileOnlySpec {
|
|||
val source = Source(1 to 10)
|
||||
val sink = Sink.fold[Int, Int](0)(_ + _)
|
||||
|
||||
// materialize the flow, getting the Sinks materialized value
|
||||
// materialize the flow, getting the Sink's materialized value
|
||||
val sum: Future[Int] = source.runWith(sink)
|
||||
//#materialization-runWith
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue