Skip to content

Commit e6b4739

Browse files
olbpeterssonqwwdfsad
authored andcommitted
Added type <Unit> to be consistent with the text
In the text it states that "We explicitly specificy its `Unit` return type" but the code example does not explicitly set it
1 parent 06e85d5 commit e6b4739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ the execution of the main function:
125125
<div class="sample" markdown="1" theme="idea" data-highlight-only>
126126

127127
```kotlin
128-
fun main(args: Array<String>) = runBlocking { // start main coroutine
128+
fun main(args: Array<String>) = runBlocking<Unit> { // start main coroutine
129129
GlobalScope.launch { // launch new coroutine in background and continue
130130
delay(1000L)
131131
println("World!")

0 commit comments

Comments
 (0)