From 13214d2dece4637710b73fe4058926a16832a322 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Thu, 12 Dec 2013 19:33:22 +0400 Subject: [PATCH] Update doc comments of utility functions on lists --- libraries/stdlib/src/kotlin/JUtil.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */