Skip to content

Commit 560ea27

Browse files
authored
Fixed typos in Undispatched.kt documentation (#4498)
1 parent cdca4dd commit 560ea27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/src/intrinsics/Undispatched.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ internal fun <T, R> ScopeCoroutine<T>.startUndispatchedOrReturnIgnoreTimeout(
5454
* For example, it handles `coroutineScope { ...suspend of throw, maybe start children... }`
5555
* and `launch(start = UNDISPATCHED) { ... }`
5656
*
57-
* @param alwaysRethrow specifies whether an exception should be unconditioanlly rethrown.
57+
* @param alwaysRethrow specifies whether an exception should be unconditionally rethrown.
5858
* It is a tweak for 'withTimeout' in order to successfully return values when the block was cancelled:
5959
* i.e. `withTimeout(1ms) { Thread.sleep(1000); 42 }` should not fail.
6060
*/
@@ -77,7 +77,7 @@ private fun <T, R> ScopeCoroutine<T>.startUndispatched(
7777
* 1) The coroutine just suspended. I.e. `coroutineScope { .. suspend here }`.
7878
* Then just suspend
7979
* 2) The coroutine completed with something, but has active children. Wait for them, also suspend
80-
* 3) The coroutine succesfully completed. Return or rethrow its result.
80+
* 3) The coroutine successfully completed. Return or rethrow its result.
8181
*/
8282
if (result === COROUTINE_SUSPENDED) return COROUTINE_SUSPENDED // (1)
8383
val state = makeCompletingOnce(result)

0 commit comments

Comments
 (0)