From 80f7acccde921fb387a17d2a5712babf3001b974 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 5 Apr 2019 05:13:32 +0200 Subject: update readme --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 038782a..8a1a720 100644 --- a/readme.md +++ b/readme.md @@ -28,8 +28,8 @@ the use of which being problematic in performance-sensitive contexts. import static org.pacien.lemonad.attempt.Attempt.*; (tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) - .mapError(__ -> store.buyLemon()) - .mapResult(this::makeLemonade) + .recoverError(__ -> store.buyLemon()) + .transformResult(this::makeLemonade) .ifSuccess(this::drink); ``` @@ -70,7 +70,7 @@ repositories { } dependencies { - implementation 'org.pacien:lemonad:614bd19ad5' + implementation 'org.pacien:lemonad:60a6659264' } ``` @@ -88,7 +88,7 @@ dependencies { org.pacien lemonad - 614bd19ad5 + 60a6659264 ``` -- cgit v1.2.3