vavr-io / vavr-docs

Source of https://docs.vavr.io
Other
10 stars 28 forks source link

Typo fix in Match(...) example, Tuple => $Tuple #46

Closed sleepytomcat closed 3 years ago

sleepytomcat commented 3 years ago

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 commented 3 years ago

Sorry for the slight delay ... Thank you!