From 07dc937e2eba67b3bd921b6a77abc1332aed9a02 Mon Sep 17 00:00:00 2001 From: Roman Elizarov Date: Mon, 23 Jan 2017 14:11:16 +0300 Subject: [PATCH] typo if start/createCoroutine docs fixed --- .../stdlib/src/kotlin/coroutines/CoroutinesLibrary.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/stdlib/src/kotlin/coroutines/CoroutinesLibrary.kt b/libraries/stdlib/src/kotlin/coroutines/CoroutinesLibrary.kt index 56e82624351..1779264f5d0 100644 --- a/libraries/stdlib/src/kotlin/coroutines/CoroutinesLibrary.kt +++ b/libraries/stdlib/src/kotlin/coroutines/CoroutinesLibrary.kt @@ -10,7 +10,7 @@ import kotlin.coroutines.intrinsics.* * Creates coroutine with receiver type [R] and result type [T]. * This function creates a new, fresh instance of suspendable computation every time it is invoked. * To start executing the created coroutine, invoke `resume(Unit)` on the returned [Continuation] instance. - * The [completion] continuation is invoked when coroutine completes with result of exception. + * The [completion] continuation is invoked when coroutine completes with result or exception. */ @SinceKotlin("1.1") @Suppress("UNCHECKED_CAST") @@ -22,7 +22,7 @@ public fun (suspend R.() -> T).createCoroutine( /** * Starts coroutine with receiver type [R] and result type [T]. * This function creates and start a new, fresh instance of suspendable computation every time it is invoked. - * The [completion] continuation is invoked when coroutine completes with result of exception. + * The [completion] continuation is invoked when coroutine completes with result or exception. */ @SinceKotlin("1.1") @Suppress("UNCHECKED_CAST") @@ -37,7 +37,7 @@ public fun (suspend R.() -> T).startCoroutine( * Creates coroutine without receiver and with result type [T]. * This function creates a new, fresh instance of suspendable computation every time it is invoked. * To start executing the created coroutine, invoke `resume(Unit)` on the returned [Continuation] instance. - * The [completion] continuation is invoked when coroutine completes with result of exception. + * The [completion] continuation is invoked when coroutine completes with result or exception. */ @SinceKotlin("1.1") @Suppress("UNCHECKED_CAST") @@ -48,7 +48,7 @@ public fun (suspend () -> T).createCoroutine( /** * Starts coroutine without receiver and with result type [T]. * This function creates and start a new, fresh instance of suspendable computation every time it is invoked. - * The [completion] continuation is invoked when coroutine completes with result of exception. + * The [completion] continuation is invoked when coroutine completes with result or exception. */ @SinceKotlin("1.1") @Suppress("UNCHECKED_CAST")