Get rid of platform differences in Collection<T>.toTypedArray() doc

This commit is contained in:
Abduqodiri Qurbonzoda
2021-05-31 01:46:00 +03:00
committed by Space
parent c64592665b
commit cc3c33b8ae
2 changed files with 8 additions and 0 deletions
@@ -111,6 +111,7 @@ internal actual fun <T> copyToArrayImpl(collection: Collection<*>, array: Array<
*
* Allocates an array of runtime type `T` having its size equal to the size of this collection
* and populates the array with the elements of this collection.
* @sample samples.collections.Collections.Collections.collectionToTypedArray
*/
public actual inline fun <reified T> Collection<T>.toTypedArray(): Array<T> {
val result = arrayOfNulls<T>(size)