Skip to content

Commit d680552

Browse files
authored
Fix run-kotlin for code snippet
1 parent 5a1a829 commit d680552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/02_control_flow/05_Conditional expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
There is no ternary operator `condition ? then : else` in Kotlin. Instead, `if` may be used as an expression:
44

5-
```kotlin
5+
```run-kotlin
66
fun main() {
77
//sampleStart
88
fun max(a: Int, b: Int) = if (a > b) a else b // 1

0 commit comments

Comments
 (0)