Skip to content

Commit aaa434a

Browse files
committed
update documentation
1 parent d7ea7f5 commit aaa434a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[![either](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/either/badge.svg?subject=either)](https://maven-badges.herokuapp.com/maven-central/io.github.jbock-java/either)
22

33
The `Either` type is closely related to `Optional`, but can have different "failure" states, other than only *empty*.
4-
An `Either` can be used to properly return error messages from stream operations,
5-
or as a lightweight alternative to exceptions.
4+
`Either` can be used to collect error messages in stream operations,
5+
or simply as a lightweight alternative to throwing an Exception.
66

77
There are several popular libraries that offer an `Either` type,
88
including [vavr](https://github.com/vavr-io/vavr), [fugue](https://bitbucket.org/atlassian/fugue/src/master/), and [lambda](https://github.com/palatable/lambda).
9-
This particular `Either` might be easier to work with, especially if you're already familiar with `Optional`.
9+
This particular `Either` is easy to work with if you're already familiar with `Optional`.
1010

0 commit comments

Comments
 (0)