We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a1a829 commit d680552Copy full SHA for d680552
examples/02_control_flow/05_Conditional expression.md
@@ -2,7 +2,7 @@
2
3
There is no ternary operator `condition ? then : else` in Kotlin. Instead, `if` may be used as an expression:
4
5
-```kotlin
+```run-kotlin
6
fun main() {
7
//sampleStart
8
fun max(a: Int, b: Int) = if (a > b) a else b // 1
0 commit comments