Fixes some indentions inside code samples
diff --git a/docs/composing-suspending-functions.md b/docs/composing-suspending-functions.md
index dafa8d6..0ce4c15 100644
--- a/docs/composing-suspending-functions.md
+++ b/docs/composing-suspending-functions.md
@@ -332,7 +332,7 @@
suspend fun concurrentSum(): Int = coroutineScope {
val one = async { doSomethingUsefulOne() }
val two = async { doSomethingUsefulTwo() }
- one.await() + two.await()
+ one.await() + two.await()
}
```
@@ -350,18 +350,18 @@
import kotlin.system.*
fun main() = runBlocking<Unit> {
-//sampleStart
+ //sampleStart
val time = measureTimeMillis {
println("The answer is ${concurrentSum()}")
}
println("Completed in $time ms")
-//sampleEnd
+ //sampleEnd
}
suspend fun concurrentSum(): Int = coroutineScope {
val one = async { doSomethingUsefulOne() }
val two = async { doSomethingUsefulTwo() }
- one.await() + two.await()
+ one.await() + two.await()
}
suspend fun doSomethingUsefulOne(): Int {
@@ -418,7 +418,7 @@
println("Second child throws an exception")
throw ArithmeticException()
}
- one.await() + two.await()
+ one.await() + two.await()
}
```