Skip to content

Commit 3a9c8ee

Browse files
committed
docs: revised 05_Conditional expression.md
revised the text.
1 parent ff4cb50 commit 3a9c8ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/02_control_flow/05_Conditional expression.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Conditional Expression
22

3-
There is no ternary operator (condition ? then : else) in Kotlin instead `if` expression could be used in the same way.
4-
Let's take a look
3+
There is no ternary operator `condition ? then : else` in Kotlin. Instead, `if` may be used as an expression:
54

65
<div class="language-kotlin" theme="idea" data-min-compiler-version="1.3">
76

@@ -17,4 +16,4 @@ fun main() {
1716

1817
</div>
1918

20-
1. `if` is an expression, i.e. it returns a value.
19+
1. `if` is an expression here, i.e. it returns a value.

0 commit comments

Comments
 (0)