Skip to content

Commit

Permalink
Adds headings to the return type arrow, closes #2921
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Jul 28, 2019
1 parent 53ac477 commit b28632f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions doc/Language/regexes.pod6
Expand Up @@ -901,11 +901,9 @@ character of an input string.
=head1 Zero-width assertions
Zero-Width Assertions can help you implement your own anchor.
A zero-width assertion turns another regex into an anchor, making
them consume no characters of the input string. There are two variants:
lookahead and lookbehind assertions.
Zero-Width assertions can help you implement your own anchor: it turns another
regex into an anchor, making them consume no characters of the input string.
There are two variants: lookahead and lookbehind assertions.
Technically, anchors are also zero-width assertions, and they can look
both ahead and behind.
Expand Down
9 changes: 5 additions & 4 deletions doc/Type/Signature.pod6
Expand Up @@ -465,11 +465,12 @@ chain.
Type captures are not supported.
X«|-->»
=head4 C<-->>
X«|Return type arrow»
=head4 Return type arrow: C<-->>
This form is preferred for several reasons:
(1) it can handle constant values while the others can't;
(2) for consistency, it is the only form accepted on this site;
This form of indicating return types (or constants) in the signature is
preferred, since it can handle constant values while the others can't. For
consistency, it is the only form accepted on this site.
The return type arrow has to be placed at the end of the parameter list,
with or without a C<,> before it.
Expand Down

0 comments on commit b28632f

Please sign in to comment.