From d6504d82b7827f664eff04bb249e41e87cb93125 Mon Sep 17 00:00:00 2001 From: Sergey Ryabov Date: Thu, 26 Oct 2017 21:22:12 +0300 Subject: [PATCH] Fix the doc for String.format and String.Companion.format --- libraries/stdlib/src/kotlin/text/StringsJVM.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/stdlib/src/kotlin/text/StringsJVM.kt b/libraries/stdlib/src/kotlin/text/StringsJVM.kt index 0352e98762d..621a3fd244f 100644 --- a/libraries/stdlib/src/kotlin/text/StringsJVM.kt +++ b/libraries/stdlib/src/kotlin/text/StringsJVM.kt @@ -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)