Skip to content

Commit 57270d2

Browse files
authored
improve inline conditionals
1 parent 772e365 commit 57270d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/reference/metaprogramming/inline.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ final val one: 1 = zero() + 1
221221

222222
## Inline Conditionals
223223

224-
If the condition of an if-then-else expressions is a constant, the expression simplifies to
225-
the selected branch. Prefixing an if-then-else expression with `inline` forces
226-
the condition to be a constant, and thus guarantees that the conditional will always
224+
If the condition of an if-then-else expressions is a constant expression then it simplifies to
225+
the selected branch. Prefixing an if-then-else expression with `inline` enforces that
226+
the condition has to be a constant expression, and thus guarantees that the conditional will always
227227
simplify.
228228

229229
Example:

0 commit comments

Comments
 (0)