Skip to content

Commit 0afdeea

Browse files
committed
we are talking about sub return, method return is handled in /type/Mu
1 parent f622680 commit 0afdeea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/control.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ All these forms may produce a return value the same way C<loop> does.
678678
679679
=head1 X<return|control flow>
680680
681-
The routine C<return> will stop execution of a subroutine or method, run all
681+
The sub C<return> will stop execution of a subroutine or method, run all
682682
relevant L<phasers|/language/phasers#Block_Phasers> and provide the given
683683
return value to the caller. The default return value is C<Nil>. If a return
684684
L<type constraint|/type/Signature#Constraining_Return_Types> is provided it
@@ -691,7 +691,7 @@ L<CONTROL|/language/phasers#CONTROL>.
691691
692692
=head1 X<return-rw|control flow>
693693
694-
The routine C<return> will return values, not containers. Those are immutable
694+
The sub C<return> will return values, not containers. Those are immutable
695695
and will lead to runtime errors when attempted to be mutated.
696696
697697
sub s(){ my $a = 41; return $a };

0 commit comments

Comments
 (0)