Update docs of String(chars, offset, length)

This commit is contained in:
Ilya Gorbunov
2019-01-14 19:38:13 +03:00
committed by Pavel Punegov
parent 68489077d0
commit d76b6ad63f
@@ -222,6 +222,9 @@ public actual fun String(chars: CharArray): String = fromCharArray(chars, 0, cha
/**
* Converts the characters from a portion of the specified array to a string.
*
* @throws IndexOutOfBoundsException if either [offset] or [length] are less than zero
* or `offset + length` is out of [chars] array bounds.
*/
public actual fun String(chars: CharArray, offset: Int, length: Int): String = fromCharArray(chars, offset, length)