Skip to content

Commit 6130238

Browse files
pettermahlenqwwdfsad
authored andcommitted
Fix grammar error in text on suspend functions
1 parent f77533c commit 6130238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ World!
326326

327327

328328
But what if the extracted function contains a coroutine builder which is invoked on the current scope?
329-
In this case `suspend` modifier on the extracted function is not enough. Making `doWorld` extension
329+
In this case `suspend` modifier on the extracted function is not enough. Making `doWorld` an extension
330330
method on `CoroutineScope` is one of the solutions, but it may not always be applicable as it does not make API clearer.
331331
The idiomatic solution is to have either an explicit `CoroutineScope` as a field in a class containing the target function
332332
or an implicit one when the outer class implements `CoroutineScope`.

0 commit comments

Comments
 (0)