Skip to content

Commit e98b394

Browse files
committed
update documentation
1 parent 9eac42c commit e98b394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ Declaring the result type before the `map` operation is necessary, due to limita
3434

3535
An Either has the familiar methods `map`, `flatMap` and `filter`.
3636
All of these work on *Right* Eithers, and leave a *Left* unchanged.
37-
This is intuitive, because the corresponding `Optional` methods leave *empty* unchanged.
37+
This is intuitive, because the corresponding methods in `Optional` leave *empty* unchanged.
3838
Symmetrically there are `mapLeft`, `flatMapLeft` and `filterLeft`, which leave a *Right* unchanged instead.
3939

40-
Finally there is `ifPresentOrElse` and the all-powerful `fold` method, as well as `getRight` to convert back to `Optional`,
40+
Finally there is ~~ifPresentOrElse~~ `ifLeftOrElse` (1.3) and the all-powerful `fold` method, as well as `getRight` to convert back to `Optional`,
4141
and `getLeft` to get the LHS value, wrapped in a so-called `LeftOptional`.
4242

4343
### Testimonies

0 commit comments

Comments
 (0)