Skip to content

Commit 55a48fb

Browse files
巳月qwwdfsad
巳月
authored andcommitted
Fix doc
1 parent bd64044 commit 55a48fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/kotlinx-coroutines-core/test/guide/example-exceptions-04.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package kotlinx.coroutines.guide.exceptions04
88
import kotlinx.coroutines.*
99

1010
fun main() = runBlocking {
11-
//sampleEnd
11+
//sampleStart
1212
val handler = CoroutineExceptionHandler { _, exception ->
1313
println("Caught $exception")
1414
}

docs/exception-handling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ when its child completes with exception despite the installed handler.
206206
import kotlinx.coroutines.*
207207

208208
fun main() = runBlocking {
209-
//sampleEnd
209+
//sampleStart
210210
val handler = CoroutineExceptionHandler { _, exception ->
211211
println("Caught $exception")
212212
}

0 commit comments

Comments
 (0)