From 5d0bdb9bcfa64e7ee17683d19e4f9ec291ca1383 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 19 Nov 2021 13:58:59 +0600 Subject: [PATCH] fix pagination --- .../kotlin/dev/inmo/micro_utils/pagination/Pagination.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/Pagination.kt b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/Pagination.kt index b20a778af2f..d6d70d24748 100644 --- a/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/Pagination.kt +++ b/pagination/common/src/commonMain/kotlin/dev/inmo/micro_utils/pagination/Pagination.kt @@ -25,7 +25,7 @@ interface Pagination : ClosedRange { override val start: Int get() = page * size override val endInclusive: Int - get() = lastIndex + get() = start + size - 1 } fun Pagination.intersect(