From 4a821135127ba56d4e2a27d3729b3f24e5a7aad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Golusi=C5=84ski?= Date: Tue, 23 Oct 2018 11:29:56 +0200 Subject: [PATCH 1/2] redundant 'of' --- common/kotlinx-coroutines-core-common/src/Supervisor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/kotlinx-coroutines-core-common/src/Supervisor.kt b/common/kotlinx-coroutines-core-common/src/Supervisor.kt index c222f667ac..f150737952 100644 --- a/common/kotlinx-coroutines-core-common/src/Supervisor.kt +++ b/common/kotlinx-coroutines-core-common/src/Supervisor.kt @@ -23,7 +23,7 @@ import kotlin.jvm.* * * If [parent] job is specified, then this supervisor job becomes a child job of its parent and is cancelled when its * parent fails or is cancelled. All this supervisor's children are cancelled in this case, too. The invocation of - * of [cancel][Job.cancel] with exception (other than [CancellationException]) on this supervisor job also cancels parent. + * [cancel][Job.cancel] with exception (other than [CancellationException]) on this supervisor job also cancels parent. * * @param parent an optional parent job. */ From 0661d477332205c23defe65d51e4063cd009e023 Mon Sep 17 00:00:00 2001 From: Prendota Date: Tue, 23 Oct 2018 15:33:12 +0300 Subject: [PATCH 2/2] fix: make snippet as non-runnable --- docs/shared-mutable-state-and-concurrency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/shared-mutable-state-and-concurrency.md b/docs/shared-mutable-state-and-concurrency.md index 4a44d3c666..7530861603 100644 --- a/docs/shared-mutable-state-and-concurrency.md +++ b/docs/shared-mutable-state-and-concurrency.md @@ -42,7 +42,7 @@ but others are unique. Let us launch a hundred coroutines all doing the same action thousand times. We'll also measure their completion time for further comparisons: -
+
```kotlin suspend fun CoroutineScope.massiveRun(action: suspend () -> Unit) {