aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorpacien2019-03-29 18:10:03 +0100
committerpacien2019-03-29 18:10:03 +0100
commit58b588129b2ab4ccb3ba84e395524e2d07d0ff08 (patch)
tree1a42401ce32ed0fedc7f7dbb2d950a482d75ab49 /readme.md
parent815755b9594d1577d282dc47120e68fe0aa8c4f1 (diff)
downloadjava-lemonad-58b588129b2ab4ccb3ba84e395524e2d07d0ff08.tar.gz
update example
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md6
1 files 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.
28import static org.pacien.lemonad.attempt.Attempt.*; 28import static org.pacien.lemonad.attempt.Attempt.*;
29 29
30(tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) 30(tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon."))
31 .mapFailure(error -> store.buyLemon()) 31 .mapError(__ -> store.buyLemon())
32 .mapResult(this::makeLemonade) 32 .mapResult(this::makeLemonade)
33 .ifSuccess(this::drink); 33 .ifSuccess(this::drink);
34``` 34```
@@ -70,7 +70,7 @@ repositories {
70} 70}
71 71
72dependencies { 72dependencies {
73 implementation 'org.pacien:lemonad:master-11a6ff0260-1' 73 implementation 'org.pacien:lemonad:master-815755b959-1'
74} 74}
75``` 75```
76 76
@@ -88,7 +88,7 @@ dependencies {
88 <dependency> 88 <dependency>
89 <groupId>org.pacien</groupId> 89 <groupId>org.pacien</groupId>
90 <artifactId>lemonad</artifactId> 90 <artifactId>lemonad</artifactId>
91 <version>master-11a6ff0260-1</version> 91 <version>master-815755b959-1</version>
92 </dependency> 92 </dependency>
93</project> 93</project>
94``` 94```