From 5c5c77d5d4eb52046fd34c7f2b26fb6b2e750829 Mon Sep 17 00:00:00 2001 From: Patrick Steiger <psteiger@gmail.com> Date: Mon, 10 Apr 2023 22:45:21 -0300 Subject: [PATCH] Update coroutines.md Add missing "to" preposition. --- proposals/coroutines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/coroutines.md b/proposals/coroutines.md index d7be92f33..43bfbcba7 100644 --- a/proposals/coroutines.md +++ b/proposals/coroutines.md @@ -759,7 +759,7 @@ fun <T> sequence(block: suspend SequenceScope<T>.() -> Unit): Sequence<T> = Sequ It uses a different primitive from the standard library called [`createCoroutine`](http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines/create-coroutine.html) -which is similar `startCoroutine` (that was explained in [coroutine builders](coroutine-builders) section). +which is similar to `startCoroutine` (that was explained in [coroutine builders](coroutine-builders) section). However it _creates_ a coroutine, but does _not_ start it. Instead, it returns its _initial continuation_ as a reference to `Continuation<Unit>`: