Skip to content

Commit a34a4fc

Browse files
Fix some sample outputs not being displayed in flow.md (#2201)
Some sample outputs in section `Flow Exceptions` are not displayed in the documentation. This commit fixes this issue.
1 parent 247b34c commit a34a4fc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/flow.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -1463,13 +1463,15 @@ fun main() = runBlocking<Unit> {
14631463
14641464
A "Caught ..." message is not printed despite there being a `catch` operator:
14651465

1466-
<!--- TEST EXCEPTION
1466+
```text
14671467
Emitting 1
14681468
1
14691469
Emitting 2
14701470
Exception in thread "main" java.lang.IllegalStateException: Collected 2
14711471
at ...
1472-
-->
1472+
```
1473+
1474+
<!--- TEST EXCEPTION -->
14731475

14741476
#### Catching declaratively
14751477

@@ -1510,12 +1512,14 @@ fun main() = runBlocking<Unit> {
15101512
Now we can see that a "Caught ..." message is printed and so we can catch all the exceptions without explicitly
15111513
using a `try/catch` block:
15121514

1513-
<!--- TEST EXCEPTION
1515+
```text
15141516
Emitting 1
15151517
1
15161518
Emitting 2
15171519
Caught java.lang.IllegalStateException: Collected 2
1518-
-->
1520+
```
1521+
1522+
<!--- TEST EXCEPTION -->
15191523

15201524
### Flow completion
15211525

0 commit comments

Comments
 (0)