Skip to content

Commit ad3fe9d

Browse files
authored
Label links to remove #s from display text (#4317)
1 parent 2a9761e commit ad3fe9d

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

doc/Language/subscripts.rakudoc

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ address nonexistent elements:
161161
say array[uint8].new(1, 2)[2] # OUTPUT: «0␤»
162162

163163
To silently skip nonexistent elements in a subscripting operation, see
164-
L<#Truncating slices> and the L<#:v> adverb.
164+
L<Truncating slices|#Truncating slices> and the L<C<:v>|#:v> adverb.
165165

166166
=head1 From the end
167167

@@ -280,7 +280,7 @@ dimensions>) the subscript is preserved across the slice operation
280280
=head2 Truncating slices
281281

282282
Referring to nonexistent elements in a slice subscript causes the output C<List>
283-
to contain undefined values (or L<whatever else| #Nonexistent elements> the
283+
to contain undefined values (or L<whatever else|#Nonexistent elements> the
284284
collection in question chooses to return for nonexistent elements):
285285

286286
=begin code
@@ -301,7 +301,7 @@ not currently exist.
301301
=end code
302302

303303
If you want the resulting slice to only include existing elements, you can
304-
silently skip the non-existent elements using the L<#:v> adverb.
304+
silently skip the non-existent elements using the L<C<:v>|#:v> adverb.
305305

306306
=begin code
307307
my @letters = <a b c d e f>;
@@ -479,7 +479,8 @@ faster.
479479
=comment TODO: Add expanded documentation on building complex data structures
480480
at /language/datastructures.html, and link to it from here.
481481

482-
See L<#method BIND-POS> and L<#method BIND-KEY> for the underlying mechanism.
482+
See L<method C<BIND-POS>|#method BIND-POS> and L<method C<BIND-KEY>|#method
483+
BIND-KEY> for the underlying mechanism.
483484

484485

485486
=head1 Adverbs
@@ -542,13 +543,13 @@ It can be used on multi-dimensional arrays and hashes:
542543
say %multi-dim{1;'bar';3}:exists; # OUTPUT: «False␤»
543544

544545

545-
C<:exists> can be combined with the L<#:delete> and L<#:p>/L<#:kv> adverbs - in
546-
which case the behavior is determined by those adverbs, except that any returned
547-
element I<value> is replaced with the corresponding L<Bool|/type/Bool>
548-
indicating element I<existence>.
546+
C<:exists> can be combined with the L<C<:delete>|#:delete> and
547+
L<C<:p>|#:p>/L<C<:kv>|#:kv> adverbs - in which case the behavior is determined
548+
by those adverbs, except that any returned element I<value> is replaced with the
549+
corresponding L<Bool|/type/Bool> indicating element I<existence>.
549550

550-
See L<#method EXISTS-POS> and L<#method EXISTS-KEY> for the underlying
551-
mechanism.
551+
See L<method C<EXISTS-POS>|#method EXISTS-POS> and L<method
552+
C<EXISTS-KEY>|#method EXISTS-KEY> for the underlying mechanism.
552553

553554
X<|Adverbs,:delete (subscript adverb)>
554555
=head2 C<:delete>
@@ -585,12 +586,13 @@ say %fruit<apple> :delete($flag); # deletes the element only if $flag is
585586
# true, but always returns the value.
586587
=end code
587588

588-
Can be combined with the L<#:exists> and L<#:p>/L<#:kv>/L<#:k>/L<#:v> adverbs -
589+
It can be combined with the L<C<:exists>|#:exists> and
590+
L<C<:p>|#:p>/L<C<:kv>#:kv>/L<C<:k>|#:k>/L<C<:v>|#:v> adverbs -
589591
in which case the return value will be determined by those adverbs, but the
590592
element will at the same time also be deleted.
591593

592-
See L<#method DELETE-POS> and L<#method DELETE-KEY> for the underlying
593-
mechanism.
594+
See L<method C<DELETE-POS>|#method DELETE-POS> and L<method
595+
C<DELETE-KEY>|#method DELETE-KEY> for the underlying mechanism.
594596

595597
You can use also these adverbs on associative type objects, but it will
596598
actually do nothing; it will also return C<Nil>
@@ -624,7 +626,7 @@ If you I<don't> want to skip nonexistent elements, use the negated form:
624626
say %month<Jan Foo Mar>:!p; # OUTPUT: «(Jan => 1 Foo => (Any) Mar => 3)␤»
625627
=end code
626628

627-
Can be combined with the L<#:exists> and L<#:delete> adverbs.
629+
It can be combined with the L<C<:exists>|#:exists> and L<C<:delete>|#:delete> adverbs.
628630

629631
See also the L<pairs|/routine/pairs> routine.
630632

@@ -658,7 +660,7 @@ This adverb is commonly used to iterate over slices:
658660
}
659661
=end code
660662

661-
Can be combined with the L<#:exists> and L<#:delete> adverbs.
663+
It can be combined with the L<C<:exists>|#:exists> and L<C<:delete>|#:delete> adverbs.
662664

663665
See also the L<kv|/routine/kv> routine.
664666

0 commit comments

Comments
 (0)