Skip to content

Commit 3b92f48

Browse files
committed
FIX minor grammar issue
1 parent 88822a8 commit 3b92f48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ These methods are static.
5757
``` kotlin
5858
doWithVersion(version: Int, lambda) // ==
5959
doWithAtLeastVersion(version: Int, lambda) // >=
60-
doWithBiggerVersion(version: Int, lambda) // >
61-
doWithSmallerVersion(version: Int, lambda) // <
60+
doWithHigherVersion(version: Int, lambda) // >
61+
doWithLowerVersion(version: Int, lambda) // <
6262
```
6363

6464
Example

kotlin-utils/src/main/java/com/costular/kotlin_utils/versions/VersionUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ class VersionUtils {
2121
}
2222
}
2323

24-
inline fun doWithBiggerVersion(version: Int, body: () -> Unit) {
24+
inline fun doWithHigherVersion(version: Int, body: () -> Unit) {
2525
if (Build.VERSION.SDK_INT > version) {
2626
body()
2727
}
2828
}
2929

30-
inline fun doWithSmallerVersion(version: Int, body: () -> Unit) {
30+
inline fun doWithLowerVersion(version: Int, body: () -> Unit) {
3131
if (Build.VERSION.SDK_INT < version) {
3232
body()
3333
}

0 commit comments

Comments
 (0)