Skip to content

Commit

Permalink
use English "Ahoy" to avoid spellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 30, 2019
1 parent a56fb05 commit c1e1705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/contexts.pod6
Expand Up @@ -173,14 +173,14 @@ contextualizer, with the result shown above.
This context will force a variable to be interpreted as C<True> or C<False>.
say "Hey" if 7; # OUTPUT: «Hey␤»
say "Ahoi" if "";
say "Ahoy" if "";
This context appears in expressions such as C<if> or C<while>, and is
equivalent to calling C<so> on these values.
=for code
say "Hey" if 7.so; # OUTPUT: «Hey␤»
say "Ahoi" if not set().so; # OUTPUT: «Ahoi␤»
say "Ahoy" if not set().so; # OUTPUT: «Ahoy␤»
In general, non-zero, non-empty will be converted to C<True>; zero or empty
will be equivalent to False. But C<.so> can be defined to return any Boolean
Expand Down

0 comments on commit c1e1705

Please sign in to comment.