Minor: fix formatting and improve docs
This commit is contained in:
@@ -10,10 +10,10 @@ package kotlin.text
|
|||||||
public inline fun buildString(builderAction: StringBuilder.() -> Unit): String = StringBuilder().apply(builderAction).toString()
|
public inline fun buildString(builderAction: StringBuilder.() -> Unit): String = StringBuilder().apply(builderAction).toString()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds new string by populating newly created [StringBuilder] initialized with the given capacity using provided [builderAction] and then converting it to [String].
|
* Builds new string by populating newly created [StringBuilder] initialized with the given [capacity] using provided [builderAction] and then converting it to [String].
|
||||||
*/
|
*/
|
||||||
@kotlin.internal.InlineOnly
|
@kotlin.internal.InlineOnly
|
||||||
inline fun buildString(capacity : Int, builderAction: StringBuilder.() -> Unit): String = StringBuilder(capacity).apply(builderAction).toString()
|
inline fun buildString(capacity: Int, builderAction: StringBuilder.() -> Unit): String = StringBuilder(capacity).apply(builderAction).toString()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Appends all arguments to the given [Appendable].
|
* Appends all arguments to the given [Appendable].
|
||||||
|
|||||||
Reference in New Issue
Block a user