diff --git a/libraries/stdlib/src/kotlin/util/Standard.kt b/libraries/stdlib/src/kotlin/util/Standard.kt index db0ace67a04..027cc85aeff 100644 --- a/libraries/stdlib/src/kotlin/util/Standard.kt +++ b/libraries/stdlib/src/kotlin/util/Standard.kt @@ -33,6 +33,8 @@ public inline fun TODO(reason: String): Nothing = throw NotImplementedError("An /** * Calls the specified function [block] and returns its result. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#run). */ @kotlin.internal.InlineOnly public inline fun run(block: () -> R): R { @@ -44,6 +46,8 @@ public inline fun run(block: () -> R): R { /** * Calls the specified function [block] with `this` value as its receiver and returns its result. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#run). */ @kotlin.internal.InlineOnly public inline fun T.run(block: T.() -> R): R { @@ -55,6 +59,8 @@ public inline fun T.run(block: T.() -> R): R { /** * Calls the specified function [block] with the given [receiver] as its receiver and returns its result. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#with). */ @kotlin.internal.InlineOnly public inline fun with(receiver: T, block: T.() -> R): R { @@ -66,6 +72,8 @@ public inline fun with(receiver: T, block: T.() -> R): R { /** * Calls the specified function [block] with `this` value as its receiver and returns `this` value. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#apply). */ @kotlin.internal.InlineOnly public inline fun T.apply(block: T.() -> Unit): T { @@ -78,6 +86,8 @@ public inline fun T.apply(block: T.() -> Unit): T { /** * Calls the specified function [block] with `this` value as its argument and returns `this` value. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#also). */ @kotlin.internal.InlineOnly @SinceKotlin("1.1") @@ -91,6 +101,8 @@ public inline fun T.also(block: (T) -> Unit): T { /** * Calls the specified function [block] with `this` value as its argument and returns its result. + * + * For detailed usage information see the documentation for [scope functions](https://kotlinlang.org/docs/reference/scope-functions.html#let). */ @kotlin.internal.InlineOnly public inline fun T.let(block: (T) -> R): R {