Skip to content

Commit f343e21

Browse files
authored
Fix run-kotlin for code snippet (Kotlin#98)
2 parents fa84835 + d680552 commit f343e21

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)