Fix the doc for String.format and String.Companion.format

This commit is contained in:
Sergey Ryabov
2017-10-26 21:22:12 +03:00
committed by ilya-g
parent 5541634187
commit d6504d82b7
@@ -123,22 +123,22 @@ public inline fun String.toCharArray(destination: CharArray, destinationOffset:
public inline fun String.format(vararg args: Any?): String = java.lang.String.format(this, *args)
/**
* Uses this string as a format string and returns a string obtained by substituting the specified arguments,
* Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments,
* using the default locale.
*/
@kotlin.internal.InlineOnly
public inline fun String.Companion.format(format: String, vararg args: Any?): String = java.lang.String.format(format, *args)
/**
* Uses this string as a format string and returns a string obtained by substituting the specified arguments, using
* the specified locale.
* Uses this string as a format string and returns a string obtained by substituting the specified arguments,
* using the specified locale.
*/
@kotlin.internal.InlineOnly
public inline fun String.format(locale: Locale, vararg args : Any?) : String = java.lang.String.format(locale, this, *args)
/**
* Uses this string as a format string and returns a string obtained by substituting the specified arguments,
* using the default locale.
* Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments,
* using the specified locale.
*/
@kotlin.internal.InlineOnly
public inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String = java.lang.String.format(locale, format, *args)