diff --git a/libraries/stdlib/src/kotlin/JUtil.kt b/libraries/stdlib/src/kotlin/JUtil.kt index 690aee1c07b..6052211b6c3 100644 --- a/libraries/stdlib/src/kotlin/JUtil.kt +++ b/libraries/stdlib/src/kotlin/JUtil.kt @@ -57,7 +57,7 @@ public inline fun List.sort(transform: fun(T) : java.lang.Comparable<* */ /** - * Returns the first item in the list + * Returns the first item in the list or null if the list is empty * * @includeFunctionBody ../../test/ListTest.kt first */ @@ -66,7 +66,7 @@ val List.first : T? /** - * Returns the last item in the list + * Returns the last item in the list or null if the list is empty * * @includeFunctionBody ../../test/ListTest.kt last */ @@ -85,7 +85,7 @@ val List.lastIndex : Int get() = this.size - 1 /** - * Returns the first item in the list + * Returns the first item in the list or null if the list is empty * * @includeFunctionBody ../../test/ListTest.kt head */