Skip to content

Commit

Permalink
Merge pull request #1305 from wangchaohui/patch-1
Browse files Browse the repository at this point in the history
[Pager] Correct the error message requireCurrentPageOffset
  • Loading branch information
bentrengrove committed Aug 31, 2022
2 parents 563431c + 8009d3f commit e956c89
Showing 1 changed file with 1 addition and 1 deletion.
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 e956c89

Please sign in to comment.