Skip to content

Commit ebe519a

Browse files
Inegoelizarov
authored andcommitted
Fix "note that" comma everywhere
1 parent e29b035 commit ebe519a

33 files changed

+54
-54
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Visible consequences of include more robust exception handling for large corouti
215215
* Distribution no longer uses multi-version jar which is not supported on Android (see #510).
216216
* JS version of the library does not depend on AtomicFu anymore:
217217
  All the atomic boxes in JS are fully erased.
218-
* Note, that versions 0.25.1-2 are skipped for technical reasons (they were not fully released).
218+
* Note that versions 0.25.1-2 are skipped for technical reasons (they were not fully released).
219219

220220
## Version 0.25.0
221221

docs/channels.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ The output of this code is:
341341

342342
<!--- TEST -->
343343

344-
Note, that you can build the same pipeline using
344+
Note that you can build the same pipeline using
345345
[`iterator`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/iterator.html)
346346
coroutine builder from the standard library.
347347
Replace `produce` with `iterator`, `send` with `yield`, `receive` with `next`,
@@ -445,7 +445,7 @@ Processor #3 received 10
445445

446446
<!--- TEST lines.size == 10 && lines.withIndex().all { (i, line) -> line.startsWith("Processor #") && line.endsWith(" received ${i + 1}") } -->
447447

448-
Note, that cancelling a producer coroutine closes its channel, thus eventually terminating iteration
448+
Note that cancelling a producer coroutine closes its channel, thus eventually terminating iteration
449449
over the channel that processor coroutines are doing.
450450

451451
Also, pay attention to how we explicitly iterate over channel with `for` loop to perform fan-out in `launchProcessor` code.
@@ -627,7 +627,7 @@ pong Ball(hits=4)
627627

628628
<!--- TEST -->
629629

630-
Note, that sometimes channels may produce executions that look unfair due to the nature of the executor
630+
Note that sometimes channels may produce executions that look unfair due to the nature of the executor
631631
that is being used. See [this issue](https://github.com/Kotlin/kotlinx.coroutines/issues/111) for details.
632632

633633
### Ticker channels

docs/composing-suspending-functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Completed in 1017 ms
162162
<!--- TEST ARBITRARY_TIME -->
163163

164164
This is twice as fast, because we have concurrent execution of two coroutines.
165-
Note, that concurrency with coroutines is always explicit.
165+
Note that concurrency with coroutines is always explicit.
166166

167167
### Lazily started async
168168

@@ -219,7 +219,7 @@ So, here the two coroutines are defined but not executed as in the previous exam
219219
the programmer on when exactly to start the execution by calling [start][Job.start]. We first
220220
start `one`, then start `two`, and then await for the individual coroutines to finish.
221221

222-
Note, that if we have called [await][Deferred.await] in `println` and omitted [start][Job.start] on individual
222+
Note that if we have called [await][Deferred.await] in `println` and omitted [start][Job.start] on individual
223223
coroutines, then we would have got the sequential behaviour as [await][Deferred.await] starts the coroutine
224224
execution and waits for the execution to finish, which is not the intended use-case for laziness.
225225
The use-case for `async(start = CoroutineStart.LAZY)` is a replacement for the
@@ -249,7 +249,7 @@ fun somethingUsefulTwoAsync() = GlobalScope.async {
249249

250250
</div>
251251

252-
Note, that these `xxxAsync` functions are **not** _suspending_ functions. They can be used from anywhere.
252+
Note that these `xxxAsync` functions are **not** _suspending_ functions. They can be used from anywhere.
253253
However, their use always implies asynchronous (here meaning _concurrent_) execution of their action
254254
with the invoking code.
255255

@@ -264,7 +264,7 @@ import kotlinx.coroutines.*
264264
import kotlin.system.*
265265

266266
//sampleStart
267-
// note, that we don't have `runBlocking` to the right of `main` in this example
267+
// note that we don't have `runBlocking` to the right of `main` in this example
268268
fun main() {
269269
val time = measureTimeMillis {
270270
// we can initiate async actions outside of a coroutine

docs/coroutine-context-and-dispatchers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ same coroutine as you can see in the output below:
267267

268268
<!--- TEST -->
269269

270-
Note, that this example also uses `use` function from the Kotlin standard library to release threads that
270+
Note that this example also uses `use` function from the Kotlin standard library to release threads that
271271
are created with [newSingleThreadContext] when they are no longer needed.
272272

273273
### Job in the context
@@ -299,7 +299,7 @@ My job is "coroutine#1":BlockingCoroutine{Active}@6d311334
299299

300300
<!--- TEST lines.size == 1 && lines[0].startsWith("My job is \"coroutine#1\":BlockingCoroutine{Active}@") -->
301301

302-
Note, that [isActive] in [CoroutineScope] is just a convenient shortcut for
302+
Note that [isActive] in [CoroutineScope] is just a convenient shortcut for
303303
`coroutineContext[Job]?.isActive == true`.
304304

305305
### Children of a coroutine

docs/select-expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ fun CoroutineScope.asyncStringsList(): List<Deferred<String>> {
376376
</div>
377377

378378
Now the main function awaits for the first of them to complete and counts the number of deferred values
379-
that are still active. Note, that we've used here the fact that `select` expression is a Kotlin DSL,
379+
that are still active. Note that we've used here the fact that `select` expression is a Kotlin DSL,
380380
so we can provide clauses for it using an arbitrary code. In this case we iterate over a list
381381
of deferred values to provide `onAwait` clause for each deferred value.
382382

docs/shared-mutable-state-and-concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ works as a solution to the problem of shared mutable state. Indeed, actors may m
553553
Actor is more efficient than locking under load, because in this case it always has work to do and it does not
554554
have to switch to a different context at all.
555555

556-
> Note, that an [actor] coroutine builder is a dual of [produce] coroutine builder. An actor is associated
556+
> Note that an [actor] coroutine builder is a dual of [produce] coroutine builder. An actor is associated
557557
with the channel that it receives messages from, while a producer is associated with the channel that it
558558
sends elements to.
559559

integration/kotlinx-coroutines-guava/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fun combineImagesAsync(name1: String, name2: String): ListenableFuture<Image> =
3535
}
3636
```
3737

38-
Note, that this module should be used only for integration with existing Java APIs based on `ListenableFuture`.
38+
Note that this module should be used only for integration with existing Java APIs based on `ListenableFuture`.
3939
Writing pure-Kotlin code that uses `ListenableFuture` is highly not recommended, since the resulting APIs based
4040
on the futures are quite error-prone. See the discussion on
4141
[Asynchronous Programming Styles](https://github.com/Kotlin/kotlin-coroutines/blob/master/kotlin-coroutines-informal.md#asynchronous-programming-styles)

integration/kotlinx-coroutines-jdk8/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fun combineImagesAsync(name1: String, name2: String): CompletableFuture<Image> =
3636
}
3737
```
3838

39-
Note, that this module should be used only for integration with existing Java APIs based on `CompletableFuture`.
39+
Note that this module should be used only for integration with existing Java APIs based on `CompletableFuture`.
4040
Writing pure-Kotlin code that uses `CompletableFuture` is highly not recommended, since the resulting APIs based
4141
on the futures are quite error-prone. See the discussion on
4242
[Asynchronous Programming Styles](https://github.com/Kotlin/KEEP/blob/master/proposals/coroutines.md#asynchronous-programming-styles)

integration/kotlinx-coroutines-slf4j/src/MDCContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public typealias MDCContextMap = Map<String, String>?
2828
* }
2929
* ```
3030
*
31-
* Note, that you cannot update MDC context from inside of the coroutine simply
31+
* Note that you cannot update MDC context from inside of the coroutine simply
3232
* using [MDC.put]. These updates are going to be lost on the next suspension and
3333
* reinstalled to the MDC context that was captured or explicitly specified in
3434
* [contextMap] when this object was created on the next resumption.

kotlinx-coroutines-core/common/src/Await.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private class AwaitAll<T>(private val deferreds: Array<out Deferred<T>>) {
109109
}
110110
} else if (notCompletedCount.decrementAndGet() == 0) {
111111
continuation.resume(deferreds.map { it.getCompleted() })
112-
// Note, that all deferreds are complete here, so we don't need to dispose their nodes
112+
// Note that all deferreds are complete here, so we don't need to dispose their nodes
113113
}
114114
}
115115
}

0 commit comments

Comments
 (0)