Merge pull request #19918 from savulchik/fix-typos
=doc Fix typos in FlowDocTest & FlowDocSpec
This commit is contained in:
commit
1029f093bf
2 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ public class FlowDocTest extends AbstractJavaTest {
|
||||||
CompletableFuture<Optional<Integer>> r5 = flow.to(sink).runWith(source, mat);
|
CompletableFuture<Optional<Integer>> r5 = flow.to(sink).runWith(source, mat);
|
||||||
Pair<CompletableFuture<Optional<Integer>>, CompletionStage<Integer>> r6 = flow.runWith(source, sink, mat);
|
Pair<CompletableFuture<Optional<Integer>>, CompletionStage<Integer>> r6 = flow.runWith(source, sink, mat);
|
||||||
|
|
||||||
// Using more complext combinations
|
// Using more complex combinations
|
||||||
RunnableGraph<Pair<CompletableFuture<Optional<Integer>>, Cancellable>> r7 =
|
RunnableGraph<Pair<CompletableFuture<Optional<Integer>>, Cancellable>> r7 =
|
||||||
source.viaMat(flow, Keep.both()).to(sink);
|
source.viaMat(flow, Keep.both()).to(sink);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ class FlowDocSpec extends AkkaSpec {
|
||||||
val r5: Promise[Option[Int]] = flow.to(sink).runWith(source)
|
val r5: Promise[Option[Int]] = flow.to(sink).runWith(source)
|
||||||
val r6: (Promise[Option[Int]], Future[Int]) = flow.runWith(source, sink)
|
val r6: (Promise[Option[Int]], Future[Int]) = flow.runWith(source, sink)
|
||||||
|
|
||||||
// Using more complext combinations
|
// Using more complex combinations
|
||||||
val r7: RunnableGraph[(Promise[Option[Int]], Cancellable)] =
|
val r7: RunnableGraph[(Promise[Option[Int]], Cancellable)] =
|
||||||
source.viaMat(flow)(Keep.both).to(sink)
|
source.viaMat(flow)(Keep.both).to(sink)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue