From d803e0e31c9aef0ddfeaf3dfe7b50888d0d49ec0 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseinzadeh <29678011+mahozad@users.noreply.github.com> Date: Thu, 16 Feb 2023 09:55:51 +0330 Subject: [PATCH] Fix a grammatical issue in String::isNotBlank docs "except of ..." is wrong. Instead, it should be either of the following: - "except ..." - "except for ..." - "with the exception of ..." See https://www.merriam-webster.com/dictionary/except%20for and https://ell.stackexchange.com/q/148197 --- libraries/stdlib/src/kotlin/text/Strings.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/stdlib/src/kotlin/text/Strings.kt b/libraries/stdlib/src/kotlin/text/Strings.kt index a7e49c035a4..7d225077292 100644 --- a/libraries/stdlib/src/kotlin/text/Strings.kt +++ b/libraries/stdlib/src/kotlin/text/Strings.kt @@ -308,7 +308,7 @@ public inline fun CharSequence.isNotEmpty(): Boolean = length > 0 /** - * Returns `true` if this char sequence is not empty and contains some characters except of whitespace characters. + * Returns `true` if this char sequence is not empty and contains some characters except whitespace characters. * * @sample samples.text.Strings.stringIsNotBlank */ @@ -1483,4 +1483,4 @@ public fun String.toBooleanStrictOrNull(): Boolean? = when (this) { "true" -> true "false" -> false else -> null -} \ No newline at end of file +}