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.
2 parents fa84835 + d680552 commit f343e21Copy full SHA for f343e21
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