From 754aa5aaa4da22f875dac733c1fb51bbf21f2b92 Mon Sep 17 00:00:00 2001 From: Michael Bull Date: Sun, 7 Feb 2021 13:32:41 +0000 Subject: [PATCH] Fix typo in recoverUnless kdoc --- .../src/commonMain/kotlin/com/github/michaelbull/result/Or.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6c4bc9b..90ca4c6 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 @@ -78,7 +78,7 @@ public inline fun Result.recoverIf(predicate: (E) -> Boolean, trans /** * Returns the [transformation][transform] of the [error][Err.error] if this [Result] is [Err] - * and _does not_ satisfies the given [predicate], otherwise this [Result]. + * and _does not_ satisfy the given [predicate], otherwise this [Result]. */ public inline fun Result.recoverUnless(predicate: (E) -> Boolean, transform: (E) -> V): Result { contract {