Skip to content

Commit 52d2f93

Browse files
yorlovelizarov
authored andcommitted
Fix typo
1 parent d1be1c9 commit 52d2f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/kotlinx-coroutines-core-common/src/CoroutineScope.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public suspend fun <R> coroutineScope(block: suspend CoroutineScope.() -> R): R
191191

192192
/**
193193
* Provides [CoroutineScope] that is already present in the current [coroutineContext] to the given [block].
194-
* Note, this method doesn't wait for all launched children to complete (as opposed to [coroutineContext]).
194+
* Note, this method doesn't wait for all launched children to complete (as opposed to [coroutineScope]).
195195
*/
196196
public suspend inline fun <R> currentScope(block: CoroutineScope.() -> R): R =
197197
CoroutineScope(coroutineContext).block()
@@ -200,4 +200,4 @@ public suspend inline fun <R> currentScope(block: CoroutineScope.() -> R): R =
200200
* Creates [CoroutineScope] that wraps the given [coroutineContext].
201201
*/
202202
@Suppress("FunctionName")
203-
public fun CoroutineScope(context: CoroutineContext): CoroutineScope = ContextScope(context)
203+
public fun CoroutineScope(context: CoroutineContext): CoroutineScope = ContextScope(context)

0 commit comments

Comments
 (0)