Docs for Either seem backwards
mmueller opened this issue · comments
Mike Mueller commented
Unless I'm mistaken, the example for Either shows "left" holding a successful result and "right" holding an error value, which is the opposite of how they're described in the docs.
Jerry D'Antonio commented
Looking at the code, the #left
method has #reason
as an alias, indicating failure. The #right
method has #value
as an alias, indicating success. So it appears that the example is wrong. I'll fix it.
Jerry D'Antonio commented
Fixed here.