Skip to content

Commit 13cdb63

Browse files
authored
Fix &?ROUTINE and %?BLOCK falsely claiming to hold Subs
1 parent 280bd95 commit 13cdb63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/variables.rakudoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,9 +1402,9 @@ $?BITS Number of data-path bits of the platform the program is being c
14021402

14031403
The compile time variable C<&?ROUTINE> provides introspection about which
14041404
routine the program is actually within. It returns an instance of
1405-
L<Sub|/type/Sub> attached to the current routine. It does support the method
1405+
L<Routine|/type/Routine> attached to the current routine. It does support the method
14061406
C<.name> to obtain the name of the called routine, as well as C<.signature> and
1407-
others method related to C<Sub>:
1407+
others method related to C<Routine>:
14081408

14091409
sub awesome-sub { say &?ROUTINE.name }
14101410
awesome-sub; # OUTPUT: «awesome-sub␤»
@@ -1442,7 +1442,7 @@ use the function name or L<C«samewith»|/language/functions#sub_samewith>.
14421442

14431443
The special compile variable C<&?BLOCK> behaves similarly to
14441444
C<&?ROUTINE> but it allows to introspect a single block of code.
1445-
It holds a L<Sub|/type/Sub> and allows for recursion within the
1445+
It holds a L<Block|/type/Block> and allows for recursion within the
14461446
same block:
14471447

14481448
=begin code

0 commit comments

Comments
 (0)