Skip to content

Commit 5c86ff0

Browse files
NyayurinAlejandraPedroza
authored andcommitted
fix: Correct terminology from "statement" to "expression"
Changed "Execute a statement if null" to "Execute an expression if null", since `throw` in Kotlin is an expression rather than a standalone statement.
1 parent 29812ab commit 5c86ff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/idioms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ val filesSize = files?.size ?: run {
202202
println(filesSize)
203203
```
204204

205-
## Execute a statement if null
205+
## Execute a expression if null
206206

207207
```kotlin
208208
val values = ...

0 commit comments

Comments
 (0)