Skip to content

Commit be69c79

Browse files
committed
perlop: Fix up smartmatch section
This has the same precedence as other operators, so should not be in a separate section with the same heading level. Solve this by making it at a sublevel. This fits nicely with another sublevel section on smartmatch that follows immediately. There are now to subsections.
1 parent 640ca2e commit be69c79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pod/perlop.pod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,14 +675,15 @@ L<previous section|/Relational Operators>: C<gt> and C<< > >>, C<lt> and
675675
C<< < >>, I<etc>.)
676676

677677
Binary C<"~~"> does a smartmatch between its arguments. Smart matching
678-
is described in the next section.
678+
is complicated enough to warrant
679+
L<two subsections|/Smartmatch Operator>, starting just below.
679680
X<~~>
680681

681682
The two-sided ordering operators C<"E<lt>=E<gt>"> and C<"cmp">, and the
682683
smartmatch operator C<"~~">, are non-associative with respect to each
683684
other and with respect to the equality operators of the same precedence.
684685

685-
=head2 Smartmatch Operator
686+
=head3 Smartmatch Operator
686687

687688
The C<smartmatch> feature is discouraged for new code and retained for
688689
backward compatibility.

0 commit comments

Comments
 (0)