Skip to content

Conversation

@sleepytomcat
Copy link
Contributor

docs.vavr.io provides an example for Match predicates:

Match(_try).of(
    Case($Success(Tuple2($("a"), $())), tuple2 -> ...),
    Case($Failure($(instanceOf(Error.class))), error -> ...)
);

(https://docs.vavr.io/#_patterns)

However, instead of Tuple type, the pattern $Tuple shall be used:

Match(_try).of(
    Case($Success($Tuple2($("a"), $())), tuple2 -> ...),
    Case($Failure($(instanceOf(Error.class))), error -> ...)
);

This PR addresses this typo.

@danieldietrich
Copy link
Contributor

Sorry for the slight delay ... Thank you!

@danieldietrich danieldietrich merged commit 6bfd4a5 into vavr-io:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants