diff --git a/kotlin-result/src/commonMain/kotlin/com/github/michaelbull/result/Or.kt b/kotlin-result/src/commonMain/kotlin/com/github/michaelbull/result/Or.kt index 619be28..e61116b 100644 --- a/kotlin-result/src/commonMain/kotlin/com/github/michaelbull/result/Or.kt +++ b/kotlin-result/src/commonMain/kotlin/com/github/michaelbull/result/Or.kt @@ -107,8 +107,8 @@ public inline fun Result.recoverUnless(predicate: (E) -> Boolean, t } /** - * Throws the [error][Err.error] if this [Result] is an [Err] - * and satisfies the given [predicate], otherwise this [Result]. + * Throws the [error][Err.error] if this [Result] is an [Err] and satisfies the given + * [predicate], otherwise returns this [Result]. * * @see [takeIf] */ @@ -128,8 +128,8 @@ public inline fun Result.throwIf(predicate: (E) -> Bool } /** - * Throws the [error][Err.error] if this [Result] is an [Err] - * and _does not_ satisfy the given [predicate], otherwise this [Result]. + * Throws the [error][Err.error] if this [Result] is an [Err] and _does not_ satisfy the + * given [predicate], otherwise returns this [Result]. * * @see [takeUnless] */