Skip to content

Commit 56646ae

Browse files
authored
Fix typo in CoroutineScope KDocs (#4367)
`cancallation` -> `cancellation`
1 parent aacb7d7 commit 56646ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public fun MainScope(): CoroutineScope = ContextScope(SupervisorJob() + Dispatch
123123
/**
124124
* Returns `true` when the current [Job] is still active (has not completed and was not cancelled yet).
125125
*
126-
* Coroutine cancallation [is cooperative](https://kotlinlang.org/docs/cancellation-and-timeouts.html#cancellation-is-cooperative)
126+
* Coroutine cancellation [is cooperative](https://kotlinlang.org/docs/cancellation-and-timeouts.html#cancellation-is-cooperative)
127127
* and normally, it's checked if a coroutine is cancelled when it *suspends*, for example,
128128
* when trying to read from a [channel][kotlinx.coroutines.channels.Channel] that is empty.
129129
*
@@ -318,7 +318,7 @@ public fun CoroutineScope.cancel(message: String, cause: Throwable? = null): Uni
318318
/**
319319
* Throws the [CancellationException] that was the scope's cancellation cause if the scope is no longer [active][CoroutineScope.isActive].
320320
*
321-
* Coroutine cancallation [is cooperative](https://kotlinlang.org/docs/cancellation-and-timeouts.html#cancellation-is-cooperative)
321+
* Coroutine cancellation [is cooperative](https://kotlinlang.org/docs/cancellation-and-timeouts.html#cancellation-is-cooperative)
322322
* and normally, it's checked if a coroutine is cancelled when it *suspends*, for example,
323323
* when trying to read from a [channel][kotlinx.coroutines.channels.Channel] that is empty.
324324
*

0 commit comments

Comments
 (0)