Fixed small typo mistake #30967 (#30992)

* Fixed small typo mistake in Sink materialized value

* Change Sinks materialized value to Sink's materialized value
This commit is contained in:
utkarshup11 2021-12-16 02:36:35 +05:30 committed by GitHub
parent 4375fe6bd7
commit 889a34e77d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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
}