Skip to content

Commit cde8d46

Browse files
committed
(really) rephrase boolean logical OR operator description
...as last commit was really about XOR
1 parent 09fbb53 commit cde8d46

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/Language/operators.pod6

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,12 +1406,13 @@ the coerced value.
14061406
14071407
=head2 infix C«?|»
14081408
1409-
multi sub infix:<?|>($a, $b --> Bool:D)
1409+
multi sub infix:<?|>(Mu $x = Bool::False)
1410+
multi sub infix:<?|>(Mu \a, Mu \b)
14101411
1411-
X<Boolean logical OR operator>.
1412-
1413-
Coerces both arguments to L<Bool|/type/Bool> and does a logical I<OR> (inclusive OR)
1414-
operation.
1412+
X<Boolean logical OR operator>. Coerces the argument(s) to L<Bool|/type/Bool>
1413+
and performs logical OR (inclusive OR) on it(them): it will return True if at least one of
1414+
the argument is True. On a single argument it behaves as identity, returning
1415+
the coerced value.
14151416
14161417
=head1 Replication precedence
14171418

0 commit comments

Comments
 (0)