From 58b588129b2ab4ccb3ba84e395524e2d07d0ff08 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 29 Mar 2019 18:10:03 +0100 Subject: update example --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 9a2a408..88c7a82 100644 --- a/readme.md +++ b/readme.md @@ -28,7 +28,7 @@ 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.")) - .mapFailure(error -> store.buyLemon()) + .mapError(__ -> store.buyLemon()) .mapResult(this::makeLemonade) .ifSuccess(this::drink); ``` @@ -70,7 +70,7 @@ repositories { } dependencies { - implementation 'org.pacien:lemonad:master-11a6ff0260-1' + implementation 'org.pacien:lemonad:master-815755b959-1' } ``` @@ -88,7 +88,7 @@ dependencies { org.pacien lemonad - master-11a6ff0260-1 + master-815755b959-1 ``` -- cgit v1.2.3