Skip to content

Commit

Permalink
Correct the error message requireCurrentPageOffset
Browse files Browse the repository at this point in the history
In the require() check, it checks the value is within [-1, 1], but the error message is different.

Correct the error message to fix.
  • Loading branch information
wangchaohui committed Aug 23, 2022
1 parent ac6fcfd commit 8009d3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class PagerState(
}

private fun requireCurrentPageOffset(value: Float, name: String) {
require(value in -1f..1f) { "$name must be >= 0 and <= 1" }
require(value in -1f..1f) { "$name must be >= -1 and <= 1" }
}

companion object {
Expand Down

0 comments on commit 8009d3f

Please sign in to comment.