diff --git a/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt b/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt index e8f2a9a3b6..103713aed2 100644 --- a/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt +++ b/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt @@ -87,8 +87,8 @@ public suspend inline fun Flow.collectIndexed(crossinline action: suspend /** * Terminal flow operator that collects the given flow with a provided [action]. - * The crucial difference from [collect] is that when the original flow emits a new value, [action] block for previous - * value is cancelled. + * The crucial difference from [collect] is that when the original flow emits a new value + * then the [action] block for the previous value is cancelled. * * It can be demonstrated by the following example: *