update comments

This commit is contained in:
Adam Velebil 2023-01-26 17:35:33 +01:00
parent 567ae5ac60
commit 4f9aee1f7a
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -57,7 +57,7 @@ class CompatUtil(private val sdkVersion: Int) {
}
/**
* @return unwrapped value if valid or result of [block]
* @return unwrapped value or result of [block]
*/
@Suppress("UNCHECKED_CAST")
fun otherwise(block: () -> T): T =
@ -72,7 +72,7 @@ class CompatUtil(private val sdkVersion: Int) {
}
/**
* @return unwrapped value if valid or [value]
* @return unwrapped value or [value]
*/
fun otherwise(value: T): T = otherwise { value }
}