Skip to content

Commit 7a63873

Browse files
committed
Eliminates spurious . and reflow
1 parent 20258c2 commit 7a63873

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

doc/Language/operators.pod6

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,10 +2099,10 @@ my %loser = points => 20, misses => 10;
20992099
=head1 Conditional operator precedence
21002100
21012101
X<|operator,ternary>
2102-
X<|operator,conditional>.
2102+
X<|operator,conditional>
21032103
=head2 infix C<?? !!>
21042104
2105-
Also called I<ternary> or I<conditional> operator. C<$condition ?? $true !!
2105+
Also called I<ternary> or I<conditional> operator, C<$condition ?? $true !!
21062106
$false> evaluates C<$condition> and returns the expression right behind ??,
21072107
in this case C<$true> if it is C<True>, otherwise evaluates and returns
21082108
the expression behind !!, C<$false> in this case.
@@ -2112,12 +2112,10 @@ X<|operator,flipflop>
21122112
21132113
sub infix:<ff>(Mu $a, Mu $b)
21142114
2115-
Also called the I<flipflop operator>.
2116-
2117-
Compares both arguments to C<$_> (that is, C<$_ ~~ $a> and C<$_ ~~ $b>).
2118-
Evaluates to C<False> until the left-hand smartmatch is C<True>, at
2119-
which point it evaluates to C<True> until the right-hand smartmatch is
2120-
C<True>.
2115+
Also called the I<flipflop operator>, compares both arguments to C<$_> (that is,
2116+
C<$_ ~~ $a> and C<$_ ~~ $b>). Evaluates to C<False> until the left-hand
2117+
smartmatch is C<True>, at which point it evaluates to C<True> until the
2118+
right-hand smartmatch is C<True>.
21212119
21222120
In effect, the left-hand argument is the "start" condition and the
21232121
right-hand is the "stop" condition. This construct is typically used to
@@ -2136,7 +2134,6 @@ END
21362134
my @codelines = gather for $excerpt.lines {
21372135
take $_ if B<"=begin code" ff "=end code">
21382136
}
2139-
21402137
# this will print four lines, starting with "=begin code" and ending with
21412138
# "=end code"
21422139
say @codelines.join("\n");
@@ -2157,7 +2154,7 @@ condition, C<*> can be used as such.
21572154
say $_ if /C/ ff *; # OUTPUT: «C␤D␤E␤»
21582155
}
21592156
2160-
For the sed-like version, which does I<not> try C<$_> on the stop
2157+
For the C<sed>-like version, which does I<not> try C<$_> on the stop
21612158
condition after succeeding on the start condition, see L<C<fff>>.
21622159
21632160
This operator cannot be overloaded, as it's handled specially by the
@@ -2251,7 +2248,8 @@ This operator cannot be overloaded, as it's handled specially by the compiler.
22512248
22522249
sub infix:<fff^>(Mu $a, Mu $b)
22532250
2254-
Like L<C<fff>>, except it does not return true for matches to the right argument.
2251+
Like L<C<fff>>, except it does not return true for matches to the right
2252+
argument.
22552253
22562254
my @list = <A B C>;
22572255
say $_ if /A/ fff /C/ for @list; # OUTPUT: «A␤B␤C␤»

0 commit comments

Comments
 (0)