Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed some indentation problems
  • Loading branch information
Jan-Olof Hendig committed Sep 8, 2016
1 parent b5552ef commit 78f8578
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions doc/Language/operators.pod6
Expand Up @@ -1592,8 +1592,8 @@ The tolerance is supposed to be modifiable via an adverb:
=comment RT #128210
=begin code :skip-test
my ($x, $y) = 42, 42.1;
say $x =~= $y :tolerance(.1);
my ($x, $y) = 42, 42.1;
say $x =~= $y :tolerance(.1);
=end code
however, this is not yet implemented. The same effect can be achieved by
Expand Down Expand Up @@ -1688,7 +1688,7 @@ returns the C<$false> branch.
=head2 infix C«ff»
=begin code :skip-test
sub infix:<ff>(Mu $a, Mu $b)
sub infix:<ff>(Mu $a, Mu $b)
=end code
X<Flipflop operator>.
Expand All @@ -1702,22 +1702,22 @@ is the "stop" condition. This construct is typically used to pick up only a
certain section of lines. For example:
=begin code :allow<B V>
my $excerpt = q:to/END/;
Here's some unimportant text.
V<=>begin code
This code block is what we're after.
We'll use 'ff' to get it.
V<=>end code
More unimportant text.
END
my @codelines = gather for $excerpt.lines {
take $_ if B<"=begin code" ff "=end code">
}
my $excerpt = q:to/END/;
Here's some unimportant text.
V<=>begin code
This code block is what we're after.
We'll use 'ff' to get it.
V<=>end code
More unimportant text.
END
my @codelines = gather for $excerpt.lines {
take $_ if B<"=begin code" ff "=end code">
}
# this will print four lines, starting with "=begin code" and ending with
# "=end code"
say @codelines.join("\n");
# this will print four lines, starting with "=begin code" and ending with
# "=end code"
say @codelines.join("\n");
=end code
After matching the start condition, the operator will then match the same C<$_>
Expand All @@ -1743,7 +1743,7 @@ This operator cannot be overloaded, as it is handled specially by the compiler.
=head2 infix C«^ff»
=begin code :skip-test
sub infix:<^ff>(Mu $a, Mu $b)
sub infix:<^ff>(Mu $a, Mu $b)
=end code
Works like L<C<ff>>, except it does not return C<True> for items matching the
Expand Down Expand Up @@ -2149,8 +2149,8 @@ Reduction operators have the same associativity as the operators they are based
=begin code
say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
=end code
Expand Down

0 comments on commit 78f8578

Please sign in to comment.