Skip to content

Commit

Permalink
Fix xor
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed Nov 4, 2023
1 parent 520097e commit 399a7a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/option/some.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class SomeImpl<T> implements SomeVariant<T>, OptionMethods<T> {
}

xor<U>(other: Option<U>) {
return other.some ? other : this
return other.some ? None : this
}

into() {
Expand Down

0 comments on commit 399a7a2

Please sign in to comment.