From 6a23322e0891b1a86b62438ee133a15b97b8ed5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20K=C3=BChrer?= <20903852+christxph@users.noreply.github.com> Date: Tue, 5 Nov 2024 14:48:41 +0100 Subject: [PATCH] Fix variable name in comment of Result#recover function --- .../core/src/main/kotlin/dev/forkhandles/result4k/result.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/result4k/core/src/main/kotlin/dev/forkhandles/result4k/result.kt b/result4k/core/src/main/kotlin/dev/forkhandles/result4k/result.kt index ec6f85c..1247293 100644 --- a/result4k/core/src/main/kotlin/dev/forkhandles/result4k/result.kt +++ b/result4k/core/src/main/kotlin/dev/forkhandles/result4k/result.kt @@ -111,7 +111,7 @@ inline fun Result.onFailure(block: (Failure) -> Nothing): T = wh } /** - * Unwrap a `Result` by returning the success value or calling `failureToValue` to mapping the failure reason to a plain value. + * Unwrap a `Result` by returning the success value or calling `errorToValue` to mapping the failure reason to a plain value. */ inline fun Result.recover(errorToValue: (E) -> U): S = mapFailure(errorToValue).get()