Skip to content

Commit 78f8578

Browse files
author
Jan-Olof Hendig
committed
Fixed some indentation problems
1 parent b5552ef commit 78f8578

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

doc/Language/operators.pod6

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,8 +1592,8 @@ The tolerance is supposed to be modifiable via an adverb:
15921592
15931593
=comment RT #128210
15941594
=begin code :skip-test
1595-
my ($x, $y) = 42, 42.1;
1596-
say $x =~= $y :tolerance(.1);
1595+
my ($x, $y) = 42, 42.1;
1596+
say $x =~= $y :tolerance(.1);
15971597
=end code
15981598
15991599
however, this is not yet implemented. The same effect can be achieved by
@@ -1688,7 +1688,7 @@ returns the C<$false> branch.
16881688
=head2 infix C«ff»
16891689
16901690
=begin code :skip-test
1691-
sub infix:<ff>(Mu $a, Mu $b)
1691+
sub infix:<ff>(Mu $a, Mu $b)
16921692
=end code
16931693
16941694
X<Flipflop operator>.
@@ -1702,22 +1702,22 @@ is the "stop" condition. This construct is typically used to pick up only a
17021702
certain section of lines. For example:
17031703
17041704
=begin code :allow<B V>
1705-
my $excerpt = q:to/END/;
1706-
Here's some unimportant text.
1707-
V<=>begin code
1708-
This code block is what we're after.
1709-
We'll use 'ff' to get it.
1710-
V<=>end code
1711-
More unimportant text.
1712-
END
1713-
1714-
my @codelines = gather for $excerpt.lines {
1715-
take $_ if B<"=begin code" ff "=end code">
1716-
}
1705+
my $excerpt = q:to/END/;
1706+
Here's some unimportant text.
1707+
V<=>begin code
1708+
This code block is what we're after.
1709+
We'll use 'ff' to get it.
1710+
V<=>end code
1711+
More unimportant text.
1712+
END
1713+
1714+
my @codelines = gather for $excerpt.lines {
1715+
take $_ if B<"=begin code" ff "=end code">
1716+
}
17171717
1718-
# this will print four lines, starting with "=begin code" and ending with
1719-
# "=end code"
1720-
say @codelines.join("\n");
1718+
# this will print four lines, starting with "=begin code" and ending with
1719+
# "=end code"
1720+
say @codelines.join("\n");
17211721
=end code
17221722
17231723
After matching the start condition, the operator will then match the same C<$_>
@@ -1743,7 +1743,7 @@ This operator cannot be overloaded, as it is handled specially by the compiler.
17431743
=head2 infix C«^ff»
17441744
17451745
=begin code :skip-test
1746-
sub infix:<^ff>(Mu $a, Mu $b)
1746+
sub infix:<^ff>(Mu $a, Mu $b)
17471747
=end code
17481748
17491749
Works like L<C<ff>>, except it does not return C<True> for items matching the
@@ -2149,8 +2149,8 @@ Reduction operators have the same associativity as the operators they are based
21492149
21502150
=begin code
21512151
2152-
say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
2153-
say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
2152+
say [-] 4, 3, 2; # 4-3-2 = (4-3)-2 = -1
2153+
say [**] 4, 3, 2; # 4**3**2 = 4**(3**2) = 262144
21542154
21552155
=end code
21562156

0 commit comments

Comments
 (0)