File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -678,7 +678,7 @@ All these forms may produce a return value the same way C<loop> does.
678
678
679
679
= head1 X < return|control flow >
680
680
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
682
682
relevant L < phasers|/language/phasers#Block_Phasers > and provide the given
683
683
return value to the caller. The default return value is C < Nil > . If a return
684
684
L < type constraint|/type/Signature#Constraining_Return_Types > is provided it
@@ -691,7 +691,7 @@ L<CONTROL|/language/phasers#CONTROL>.
691
691
692
692
= head1 X < return-rw|control flow >
693
693
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
695
695
and will lead to runtime errors when attempted to be mutated.
696
696
697
697
sub s(){ my $a = 41; return $a };
You can’t perform that action at this time.
0 commit comments