Fix min/maxByOrNull function samples

This commit is contained in:
Abduqodiri Qurbonzoda
2020-06-23 07:20:14 +03:00
parent 684ca5029f
commit a04f70fb36
8 changed files with 41 additions and 41 deletions
@@ -188,7 +188,7 @@ public inline fun <K, V, R : Comparable<R>> Map<out K, V>.maxBy(selector: (Map.E
/**
* Returns the first entry yielding the largest value of the given function or `null` if there are no entries.
*
* @sample samples.collections.Collections.Aggregates.maxBy
* @sample samples.collections.Collections.Aggregates.maxByOrNull
*/
@SinceKotlin("1.4")
@kotlin.internal.InlineOnly
@@ -331,7 +331,7 @@ public inline fun <K, V, R : Comparable<R>> Map<out K, V>.minBy(selector: (Map.E
/**
* Returns the first entry yielding the smallest value of the given function or `null` if there are no entries.
*
* @sample samples.collections.Collections.Aggregates.minBy
* @sample samples.collections.Collections.Aggregates.minByOrNull
*/
@SinceKotlin("1.4")
@kotlin.internal.InlineOnly