Skip to content

Commit c92cf2c

Browse files
committed
Mention/index return-rw
Closes #453
1 parent f3e8184 commit c92cf2c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/Language/control.pod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,10 @@ All these forms may produce a return value the same way C<loop> does.
680680
681681
=comment TODO
682682
683+
=head1 X<return-rw|control flow>
684+
685+
Same as C<return>, but returns a writable container.
686+
683687
=head1 X<once|control flow>
684688
685689
A block prefix with C<once> will be executed exactly once, even if placed inside a

doc/Type/Routine.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ produces
156156
=end code
157157
158158
Note that C<return> marks return values as read only; if you need an early
159-
exit from an C<is rw> routine, you have to use C<return-rw> instead.
159+
exit from an C<is rw> routine, you have to use X<C<return-rw>|return-rw> instead.
160160
161161
=head2 trait is export
162162

0 commit comments

Comments
 (0)