Fix CharSequence.repeat doc

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-15 15:37:03 +03:00
parent c73dadbcdf
commit dab09e7052
2 changed files with 6 additions and 0 deletions
@@ -103,6 +103,7 @@ public actual fun String.decapitalize(): String {
/**
* Returns a string containing this char sequence repeated [n] times.
* @throws [IllegalArgumentException] when n < 0.
* @sample samples.text.Strings.repeat
*/
public actual fun CharSequence.repeat(n: Int): String {
require(n >= 0) { "Count 'n' must be non-negative, but was $n." }