From dbfb4aebfacc0b58da189a386a9614365ecaf643 Mon Sep 17 00:00:00 2001 From: Masood Fallahpoor Date: Tue, 24 Aug 2021 13:14:22 +0200 Subject: [PATCH] Fix the API doc of launchIn operator (#2893) --- kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt b/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt index d26839f9ea..771f8332c3 100644 --- a/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt +++ b/kotlinx-coroutines-core/common/src/flow/terminal/Collect.kt @@ -44,7 +44,7 @@ public suspend fun Flow<*>.collect(): Unit = collect(NopCollector) * .launchIn(uiScope) * ``` * - * Note that resulting value of [launchIn] is not used the provided scope takes care of cancellation. + * Note that the resulting value of [launchIn] is not used and the provided scope takes care of cancellation. */ public fun Flow.launchIn(scope: CoroutineScope): Job = scope.launch { collect() // tail-call