Skip to content

Commit

Permalink
Update docs/topics/scope-functions.md
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Haggarty <[email protected]>
  • Loading branch information
Kaaveh and sarahhaggarty authored Oct 19, 2023
1 parent c16cdc5 commit a7c686e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/scope-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ fun main() {
- **The return value** is the lambda result.

[`run`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/run.html) does the same as `with` but it is implemented as
an extension function ("_The `with` in extension function style!_"). So like `let`, you can call it on the context object using dot notation.
an extension function. So like `let`, you can call it on the context object using dot notation.

`run` is useful when your lambda both initializes objects and computes the return value.

Expand Down

0 comments on commit a7c686e

Please sign in to comment.