Skip to content

Commit 6eda4f8

Browse files
MasoodFallahpoorpablobaxter
authored andcommitted
Make some corrections in 'Shared mutable state and concurrency' doc (Kotlin#2929)
1 parent 8403136 commit 6eda4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ but others are unique.
99

1010
## The problem
1111

12-
Let us launch a hundred coroutines all doing the same action thousand times.
12+
Let us launch a hundred coroutines all doing the same action a thousand times.
1313
We'll also measure their completion time for further comparisons:
1414

1515
```kotlin
@@ -384,7 +384,7 @@ single reference to the actor can be carried around as its handle.
384384
The first step of using an actor is to define a class of messages that an actor is going to process.
385385
Kotlin's [sealed classes](https://kotlinlang.org/docs/reference/sealed-classes.html) are well suited for that purpose.
386386
We define `CounterMsg` sealed class with `IncCounter` message to increment a counter and `GetCounter` message
387-
to get its value. The later needs to send a response. A [CompletableDeferred] communication
387+
to get its value. The latter needs to send a response. A [CompletableDeferred] communication
388388
primitive, that represents a single value that will be known (communicated) in the future,
389389
is used here for that purpose.
390390

0 commit comments

Comments
 (0)