Skip to content

Commit

Permalink
rephrase the sentence about the ? and ! operators
Browse files Browse the repository at this point in the history
  • Loading branch information
stoned authored and JJ committed Sep 13, 2020
1 parent 094659f commit 4b77fa4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/Language/contexts.pod6
Expand Up @@ -193,10 +193,9 @@ In general, non-zero, non-empty will be converted to C<True>; zero or empty
will be equivalent to C<False>. But C<.so> can be defined to return any Boolean
value we want, so this is just a rule of thumb.
L«C<?>|/language/operators#prefix_?» and
L«C<!>|/language/operators#prefix_!» are the Boolean context operator
and its negation respectively.
They will force this context on an object.
The L«C<?>|/language/operators#prefix_?» Boolean context operator
and the L«C<!>|/language/operators#prefix_!» negated Boolean context
operator will force the Boolean context on an object.
=for code
say ? 0i; # OUTPUT: «False␤»
Expand Down

0 comments on commit 4b77fa4

Please sign in to comment.