Skip to content

Commit d8eb80e

Browse files
committed
Merge branch 'master' into develop
2 parents 73942ee + c2d218a commit d8eb80e

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export JDK_18="$JAVA_HOME"
9494

9595
### Running the Knit tool
9696

97-
* Use [Knit](https://github.com/Kotlin/kotlinx-knit/blob/master/README.md) for updates to documentation:
97+
* Use [Knit](https://github.com/Kotlin/kotlinx-knit/blob/main/README.md) for updates to documentation:
9898
* Run `./gradlew knit` to update example files, links, tables of content.
9999
* Commit updated documents and examples together with other changes.
100100

docs/topics/coroutines-basics.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
152152

153153
This code also prints:
154154

155-
<!--- TEST
155+
```text
156156
Hello
157157
World!
158-
-->
158+
```
159+
160+
<!--- TEST -->
159161

160162
## Scope builder and concurrency
161163

@@ -166,7 +168,7 @@ Let's launch two concurrent coroutines inside a `doWorld` suspending function:
166168
import kotlinx.coroutines.*
167169

168170
//sampleStart
169-
// Sequentially executes doWorld followed by "Hello"
171+
// Sequentially executes doWorld followed by "Done"
170172
fun main() = runBlocking {
171173
doWorld()
172174
println("Done")

kotlinx-coroutines-core/common/src/flow/operators/Share.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import kotlin.jvm.*
6868
* ### Upstream completion and error handling
6969
*
7070
* **Normal completion of the upstream flow has no effect on subscribers**, and the sharing coroutine continues to run. If a
71-
* a strategy like [SharingStarted.WhileSubscribed] is used, then the upstream can get restarted again. If a special
71+
* strategy like [SharingStarted.WhileSubscribed] is used, then the upstream can get restarted again. If a special
7272
* action on upstream completion is needed, then an [onCompletion] operator can be used before the
7373
* `shareIn` operator to emit a special value in this case, like this:
7474
*

kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package kotlinx.coroutines.guide.exampleBasic04
77

88
import kotlinx.coroutines.*
99

10-
// Sequentially executes doWorld followed by "Hello"
10+
// Sequentially executes doWorld followed by "Done"
1111
fun main() = runBlocking {
1212
doWorld()
1313
println("Done")

0 commit comments

Comments
 (0)