Skip to content

Commit

Permalink
Remove superstitious parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 4, 2018
1 parent e0ca4a2 commit d9eae79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/5to6-nutshell.pod6
Expand Up @@ -637,10 +637,10 @@ The conditional operator C<? :> has been replaced
by C<?? !!>:
=for code :lang<perl5>
my $result = ( $score > 60 ) ? 'Pass' : 'Fail'; # Perl 5
my $result = $score > 60 ? 'Pass' : 'Fail'; # Perl 5
=for code :preamble<my $score>
my $result = ( $score > 60 ) ?? 'Pass' !! 'Fail'; # Perl 6
my $result = $score > 60 ?? 'Pass' !! 'Fail'; # Perl 6
=head2 C<.> (Dot) String Concatenation
Expand Down

0 comments on commit d9eae79

Please sign in to comment.