Skip to content

Commit

Permalink
Wrong parameter name in Either.filterOrElse JavaDoc (#2618)
Browse files Browse the repository at this point in the history
Co-authored-by: Gualtiero Testa <gualtiero.testa@pm.me>
  • Loading branch information
gualtierotesta and Gualtiero Testa authored Nov 29, 2020
1 parent d6f9ccb commit 52d4591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/vavr/control/Either.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ public final Option<Either<L, R>> filterNot(Predicate<? super R> predicate) {
* Filters this right-biased {@code Either} by testing a predicate.
* If the {@code Either} is a {@code Right} and the predicate doesn't match, the
* {@code Either} will be turned into a {@code Left} with contents computed by applying
* the filterVal function to the {@code Either} value.
* the zero function to the {@code Either} value.
*
* <pre>{@code
* // = Left("bad: a")
Expand Down

0 comments on commit 52d4591

Please sign in to comment.