Skip to content

Commit c729024

Browse files
authored
minor fix for typo and link (#3462)
1 parent 2fb055e commit c729024

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/topics/debug-flow-with-idea.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Create a Kotlin [flow](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-cor
6161
* Use the [`runBlocking()`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/run-blocking.html) block to wrap a coroutine.
6262
* Collect the emitted values using the [`collect()`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/collect.html) function.
6363
* Use the [`delay()`](https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/delay.html) function to imitate CPU-consuming code. It suspends the coroutine for 300 ms without blocking the thread.
64-
* Print the collected value from the flow using the [`println()`](https://kotlinlang.org/api/latest/jvm/stdlib/stdlib/kotlin.io/println.html) function.
64+
* Print the collected value from the flow using the [`println()`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/println.html) function.
6565

6666
```kotlin
6767
fun main() = runBlocking {

docs/topics/flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ The output here in this example is a good demonstration of how [flatMapLatest] w
11851185

11861186
<!--- TEST ARBITRARY_TIME -->
11871187

1188-
> Note that [flatMapLatest] cancels all the code in its block (`{ requestFlow(it) }` in this example when a new value
1188+
> Note that [flatMapLatest] cancels all the code in its block (`{ requestFlow(it) }` in this example) when a new value
11891189
> is received.
11901190
> It makes no difference in this particular example, because the call to `requestFlow` itself is fast, not-suspending,
11911191
> and cannot be cancelled. However, a differnce in output would be visible if we were to use suspending functions

0 commit comments

Comments
 (0)