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
@@ -192,6 +192,11 @@ internal expect fun String.nativeLastIndexOf(str: String, fromIndex: Int): Int
public expect fun String.substring(startIndex: Int): String
public expect fun String.substring(startIndex: Int, endIndex: Int): String
/**
* Returns a string containing this char sequence repeated [n] times.
* @throws [IllegalArgumentException] when n < 0.
* @sample samples.text.Strings.repeat
*/
public expect fun CharSequence.repeat(n: Int): String