From 30ec88129ccbbd76f6f3e9986a8b5cee84ebc5ef Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Tue, 7 Jul 2015 16:10:45 +0300 Subject: [PATCH] Clarify docs for capitalize and decapitalize methods. --- libraries/stdlib/src/kotlin/text/StringsJVM.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/stdlib/src/kotlin/text/StringsJVM.kt b/libraries/stdlib/src/kotlin/text/StringsJVM.kt index a990d99b124..e9952c366b3 100644 --- a/libraries/stdlib/src/kotlin/text/StringsJVM.kt +++ b/libraries/stdlib/src/kotlin/text/StringsJVM.kt @@ -455,8 +455,8 @@ public val String.reader: StringReader get() = StringReader(this) /** - * Returns a copy of this string capitalised if it is not empty or already starting with an upper case letter, - * otherwise returns this. + * Returns a copy of this string having its first letter uppercased, or the original string, + * if it's empty or already starts with an upper case letter. * * @sample test.text.StringTest.capitalize */ @@ -465,8 +465,8 @@ public fun String.capitalize(): String { } /** - * Returns a copy of this string with the first letter lowercased if it is not empty or already starting with - * a lower case letter, otherwise returns this. + * Returns a copy of this string having its first letter lowercased, or the original string, + * if it's empty or already starts with a lower case letter. * * @sample test.text.StringTest.decapitalize */