diff --git a/docs/topics/reflection.md b/docs/topics/reflection.md index b4b5621c657..db13399a790 100644 --- a/docs/topics/reflection.md +++ b/docs/topics/reflection.md @@ -197,11 +197,11 @@ fun main() { } ``` -The expression `::x` evaluates to a `KProperty` type property object. You can read its +The expression `::x` evaluates to a `KProperty0` type property object. You can read its value using `get()` or retrieve the property name using the `name` property. For more information, see the [docs on the `KProperty` class](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-property/index.html). -For a mutable property such as `var y = 1`, `::y` returns a value with the [`KMutableProperty`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-mutable-property/index.html) type +For a mutable property such as `var y = 1`, `::y` returns a value with the [`KMutableProperty0`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-mutable-property/index.html) type which has a `set()` method: ```kotlin @@ -366,4 +366,4 @@ class Outer { val o = Outer() val boundInnerCtor = o::Inner -``` \ No newline at end of file +```